Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Commit 09eb0ef

Browse files
Merge pull request #244 from AmiterCodes/master
feat(Chip.d.ts): New definition file
2 parents 22553c2 + 436b873 commit 09eb0ef

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { SvelteComponent } from './shared';
2+
3+
export interface ChipProps {
4+
/** Classes to add to checkbox wrapper. */
5+
class?: string;
6+
/** Determines whether the chip is visible or not. */
7+
active?: boolean;
8+
/** selected state */
9+
selected?: boolean;
10+
/** Specifies the size of chip. */
11+
size?: 'x-small' | 'small' | 'default' | 'large' | 'x-large';
12+
/** specifies if the chip is outlined */
13+
outlined?: boolean;
14+
/** specifies if the avatar will fill the chip in height */
15+
pill?: boolean;
16+
/** determines if the chip is a link, making it clickable */
17+
link?: boolean;
18+
/** specifies if the chip is a label, making it less rounded */
19+
label?: boolean;
20+
/** determines if a close button will appear */
21+
close?: boolean;
22+
}
23+
24+
declare class Chip extends SvelteComponent<ChipProps> {}
25+
26+
export default Chip;

0 commit comments

Comments
 (0)