sv5ui 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +124 -0
- package/dist/Alert/Alert.svelte +120 -0
- package/dist/Alert/Alert.svelte.d.ts +5 -0
- package/dist/Alert/alert.types.d.ts +99 -0
- package/dist/Alert/alert.types.js +1 -0
- package/dist/Alert/alert.variants.d.ts +213 -0
- package/dist/Alert/alert.variants.js +293 -0
- package/dist/Alert/index.d.ts +2 -0
- package/dist/Alert/index.js +1 -0
- package/dist/Avatar/Avatar.svelte +70 -0
- package/dist/Avatar/Avatar.svelte.d.ts +6 -0
- package/dist/Avatar/avatar.types.d.ts +40 -0
- package/dist/Avatar/avatar.types.js +1 -0
- package/dist/Avatar/avatar.variants.d.ts +178 -0
- package/dist/Avatar/avatar.variants.js +28 -0
- package/dist/Avatar/index.d.ts +2 -0
- package/dist/Avatar/index.js +1 -0
- package/dist/AvatarGroup/AvatarGroup.svelte +66 -0
- package/dist/AvatarGroup/AvatarGroup.svelte.d.ts +5 -0
- package/dist/AvatarGroup/avatar-group.types.d.ts +34 -0
- package/dist/AvatarGroup/avatar-group.types.js +1 -0
- package/dist/AvatarGroup/avatar-group.variants.d.ts +173 -0
- package/dist/AvatarGroup/avatar-group.variants.js +45 -0
- package/dist/AvatarGroup/index.d.ts +2 -0
- package/dist/AvatarGroup/index.js +1 -0
- package/dist/Badge/Badge.svelte +74 -0
- package/dist/Badge/Badge.svelte.d.ts +5 -0
- package/dist/Badge/badge.types.d.ts +74 -0
- package/dist/Badge/badge.types.js +1 -0
- package/dist/Badge/badge.variants.d.ts +303 -0
- package/dist/Badge/badge.variants.js +245 -0
- package/dist/Badge/index.d.ts +2 -0
- package/dist/Badge/index.js +1 -0
- package/dist/Button/Button.svelte +103 -0
- package/dist/Button/Button.svelte.d.ts +6 -0
- package/dist/Button/button.types.d.ts +97 -0
- package/dist/Button/button.types.js +1 -0
- package/dist/Button/button.variants.d.ts +388 -0
- package/dist/Button/button.variants.js +461 -0
- package/dist/Button/index.d.ts +2 -0
- package/dist/Button/index.js +1 -0
- package/dist/Card/Card.svelte +53 -0
- package/dist/Card/Card.svelte.d.ts +5 -0
- package/dist/Card/card.types.d.ts +32 -0
- package/dist/Card/card.types.js +1 -0
- package/dist/Card/card.variants.d.ts +108 -0
- package/dist/Card/card.variants.js +32 -0
- package/dist/Card/index.d.ts +2 -0
- package/dist/Card/index.js +1 -0
- package/dist/Chip/Chip.svelte +50 -0
- package/dist/Chip/Chip.svelte.d.ts +5 -0
- package/dist/Chip/chip.types.d.ts +62 -0
- package/dist/Chip/chip.types.js +1 -0
- package/dist/Chip/chip.variants.d.ts +328 -0
- package/dist/Chip/chip.variants.js +58 -0
- package/dist/Chip/index.d.ts +2 -0
- package/dist/Chip/index.js +1 -0
- package/dist/Container/Container.svelte +27 -0
- package/dist/Container/Container.svelte.d.ts +5 -0
- package/dist/Container/container.types.d.ts +19 -0
- package/dist/Container/container.types.js +1 -0
- package/dist/Container/container.variants.d.ts +29 -0
- package/dist/Container/container.variants.js +9 -0
- package/dist/Container/index.d.ts +2 -0
- package/dist/Container/index.js +1 -0
- package/dist/Empty/Empty.svelte +83 -0
- package/dist/Empty/Empty.svelte.d.ts +5 -0
- package/dist/Empty/empty.types.d.ts +74 -0
- package/dist/Empty/empty.types.js +1 -0
- package/dist/Empty/empty.variants.d.ts +288 -0
- package/dist/Empty/empty.variants.js +364 -0
- package/dist/Empty/index.d.ts +2 -0
- package/dist/Empty/index.js +1 -0
- package/dist/Icon/Icon.svelte +40 -0
- package/dist/Icon/Icon.svelte.d.ts +6 -0
- package/dist/Icon/icon.types.d.ts +37 -0
- package/dist/Icon/icon.types.js +1 -0
- package/dist/Icon/index.d.ts +2 -0
- package/dist/Icon/index.js +1 -0
- package/dist/Kbd/Kbd.svelte +35 -0
- package/dist/Kbd/Kbd.svelte.d.ts +5 -0
- package/dist/Kbd/index.d.ts +3 -0
- package/dist/Kbd/index.js +2 -0
- package/dist/Kbd/kbd.types.d.ts +77 -0
- package/dist/Kbd/kbd.types.js +1 -0
- package/dist/Kbd/kbd.variants.d.ts +118 -0
- package/dist/Kbd/kbd.variants.js +96 -0
- package/dist/Kbd/useKbd.svelte.d.ts +29 -0
- package/dist/Kbd/useKbd.svelte.js +245 -0
- package/dist/Link/Link.svelte +117 -0
- package/dist/Link/Link.svelte.d.ts +5 -0
- package/dist/Link/index.d.ts +2 -0
- package/dist/Link/index.js +1 -0
- package/dist/Link/link.types.d.ts +68 -0
- package/dist/Link/link.types.js +1 -0
- package/dist/Link/link.variants.d.ts +138 -0
- package/dist/Link/link.variants.js +145 -0
- package/dist/Progress/Progress.svelte +89 -0
- package/dist/Progress/Progress.svelte.d.ts +6 -0
- package/dist/Progress/index.d.ts +2 -0
- package/dist/Progress/index.js +1 -0
- package/dist/Progress/progress.types.d.ts +63 -0
- package/dist/Progress/progress.types.js +1 -0
- package/dist/Progress/progress.variants.d.ts +483 -0
- package/dist/Progress/progress.variants.js +190 -0
- package/dist/Separator/Separator.svelte +67 -0
- package/dist/Separator/Separator.svelte.d.ts +6 -0
- package/dist/Separator/index.d.ts +2 -0
- package/dist/Separator/index.js +1 -0
- package/dist/Separator/separator.types.d.ts +48 -0
- package/dist/Separator/separator.types.js +1 -0
- package/dist/Separator/separator.variants.d.ts +488 -0
- package/dist/Separator/separator.variants.js +104 -0
- package/dist/Skeleton/Skeleton.svelte +31 -0
- package/dist/Skeleton/Skeleton.svelte.d.ts +5 -0
- package/dist/Skeleton/index.d.ts +2 -0
- package/dist/Skeleton/index.js +1 -0
- package/dist/Skeleton/skeleton.types.d.ts +18 -0
- package/dist/Skeleton/skeleton.types.js +1 -0
- package/dist/Skeleton/skeleton.variants.d.ts +18 -0
- package/dist/Skeleton/skeleton.variants.js +12 -0
- package/dist/Timeline/Timeline.svelte +106 -0
- package/dist/Timeline/Timeline.svelte.d.ts +5 -0
- package/dist/Timeline/index.d.ts +2 -0
- package/dist/Timeline/index.js +1 -0
- package/dist/Timeline/timeline.types.d.ts +130 -0
- package/dist/Timeline/timeline.types.js +1 -0
- package/dist/Timeline/timeline.variants.d.ts +413 -0
- package/dist/Timeline/timeline.variants.js +121 -0
- package/dist/User/User.svelte +94 -0
- package/dist/User/User.svelte.d.ts +5 -0
- package/dist/User/index.d.ts +2 -0
- package/dist/User/index.js +1 -0
- package/dist/User/user.types.d.ts +74 -0
- package/dist/User/user.types.js +1 -0
- package/dist/User/user.variants.d.ts +308 -0
- package/dist/User/user.variants.js +73 -0
- package/dist/config.d.ts +59 -0
- package/dist/config.js +94 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +20 -0
- package/dist/theme.css +410 -0
- package/package.json +104 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
+
import type { ClassNameValue } from 'tailwind-merge';
|
|
3
|
+
import type { AvatarGroupSlots } from './avatar-group.variants.js';
|
|
4
|
+
import type { AvatarProps, AvatarSize } from '../Avatar/avatar.types.js';
|
|
5
|
+
export type AvatarGroupProps = HTMLAttributes<HTMLDivElement> & {
|
|
6
|
+
/**
|
|
7
|
+
* The HTML element to render as.
|
|
8
|
+
* @default 'div'
|
|
9
|
+
*/
|
|
10
|
+
as?: keyof HTMLElementTagNameMap;
|
|
11
|
+
/**
|
|
12
|
+
* Controls the size of all avatars in the group.
|
|
13
|
+
* @default 'md'
|
|
14
|
+
*/
|
|
15
|
+
size?: AvatarSize;
|
|
16
|
+
/**
|
|
17
|
+
* Array of avatar props to render.
|
|
18
|
+
* Use with `max` to limit visible count.
|
|
19
|
+
*/
|
|
20
|
+
avatars?: Omit<AvatarProps, 'size' | 'children'>[];
|
|
21
|
+
/**
|
|
22
|
+
* Maximum visible avatars.
|
|
23
|
+
* Excess displayed as a "+N" indicator.
|
|
24
|
+
*/
|
|
25
|
+
max?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Additional CSS classes for the root element.
|
|
28
|
+
*/
|
|
29
|
+
class?: ClassNameValue;
|
|
30
|
+
/**
|
|
31
|
+
* Override styles for specific avatar group slots.
|
|
32
|
+
*/
|
|
33
|
+
ui?: Partial<Record<AvatarGroupSlots, ClassNameValue>>;
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { type VariantProps } from 'tailwind-variants';
|
|
2
|
+
export declare const avatarGroupVariants: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
size: {
|
|
4
|
+
'3xs': {
|
|
5
|
+
base: string;
|
|
6
|
+
};
|
|
7
|
+
'2xs': {
|
|
8
|
+
base: string;
|
|
9
|
+
};
|
|
10
|
+
xs: {
|
|
11
|
+
base: string;
|
|
12
|
+
};
|
|
13
|
+
sm: {
|
|
14
|
+
base: string;
|
|
15
|
+
};
|
|
16
|
+
md: {
|
|
17
|
+
base: string;
|
|
18
|
+
};
|
|
19
|
+
lg: {
|
|
20
|
+
base: string;
|
|
21
|
+
};
|
|
22
|
+
xl: {
|
|
23
|
+
base: string;
|
|
24
|
+
};
|
|
25
|
+
'2xl': {
|
|
26
|
+
base: string;
|
|
27
|
+
};
|
|
28
|
+
'3xl': {
|
|
29
|
+
base: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
}, {
|
|
33
|
+
root: string;
|
|
34
|
+
base: string;
|
|
35
|
+
}, undefined, {
|
|
36
|
+
size: {
|
|
37
|
+
'3xs': {
|
|
38
|
+
base: string;
|
|
39
|
+
};
|
|
40
|
+
'2xs': {
|
|
41
|
+
base: string;
|
|
42
|
+
};
|
|
43
|
+
xs: {
|
|
44
|
+
base: string;
|
|
45
|
+
};
|
|
46
|
+
sm: {
|
|
47
|
+
base: string;
|
|
48
|
+
};
|
|
49
|
+
md: {
|
|
50
|
+
base: string;
|
|
51
|
+
};
|
|
52
|
+
lg: {
|
|
53
|
+
base: string;
|
|
54
|
+
};
|
|
55
|
+
xl: {
|
|
56
|
+
base: string;
|
|
57
|
+
};
|
|
58
|
+
'2xl': {
|
|
59
|
+
base: string;
|
|
60
|
+
};
|
|
61
|
+
'3xl': {
|
|
62
|
+
base: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
}, {
|
|
66
|
+
root: string;
|
|
67
|
+
base: string;
|
|
68
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
69
|
+
size: {
|
|
70
|
+
'3xs': {
|
|
71
|
+
base: string;
|
|
72
|
+
};
|
|
73
|
+
'2xs': {
|
|
74
|
+
base: string;
|
|
75
|
+
};
|
|
76
|
+
xs: {
|
|
77
|
+
base: string;
|
|
78
|
+
};
|
|
79
|
+
sm: {
|
|
80
|
+
base: string;
|
|
81
|
+
};
|
|
82
|
+
md: {
|
|
83
|
+
base: string;
|
|
84
|
+
};
|
|
85
|
+
lg: {
|
|
86
|
+
base: string;
|
|
87
|
+
};
|
|
88
|
+
xl: {
|
|
89
|
+
base: string;
|
|
90
|
+
};
|
|
91
|
+
'2xl': {
|
|
92
|
+
base: string;
|
|
93
|
+
};
|
|
94
|
+
'3xl': {
|
|
95
|
+
base: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
}, {
|
|
99
|
+
root: string;
|
|
100
|
+
base: string;
|
|
101
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
102
|
+
export type AvatarGroupVariantProps = VariantProps<typeof avatarGroupVariants>;
|
|
103
|
+
export type AvatarGroupSlots = keyof ReturnType<typeof avatarGroupVariants>;
|
|
104
|
+
export declare const avatarGroupDefaults: {
|
|
105
|
+
defaultVariants: import("tailwind-variants").TVDefaultVariants<{
|
|
106
|
+
size: {
|
|
107
|
+
'3xs': {
|
|
108
|
+
base: string;
|
|
109
|
+
};
|
|
110
|
+
'2xs': {
|
|
111
|
+
base: string;
|
|
112
|
+
};
|
|
113
|
+
xs: {
|
|
114
|
+
base: string;
|
|
115
|
+
};
|
|
116
|
+
sm: {
|
|
117
|
+
base: string;
|
|
118
|
+
};
|
|
119
|
+
md: {
|
|
120
|
+
base: string;
|
|
121
|
+
};
|
|
122
|
+
lg: {
|
|
123
|
+
base: string;
|
|
124
|
+
};
|
|
125
|
+
xl: {
|
|
126
|
+
base: string;
|
|
127
|
+
};
|
|
128
|
+
'2xl': {
|
|
129
|
+
base: string;
|
|
130
|
+
};
|
|
131
|
+
'3xl': {
|
|
132
|
+
base: string;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
}, {
|
|
136
|
+
root: string;
|
|
137
|
+
base: string;
|
|
138
|
+
}, {
|
|
139
|
+
size: {
|
|
140
|
+
'3xs': {
|
|
141
|
+
base: string;
|
|
142
|
+
};
|
|
143
|
+
'2xs': {
|
|
144
|
+
base: string;
|
|
145
|
+
};
|
|
146
|
+
xs: {
|
|
147
|
+
base: string;
|
|
148
|
+
};
|
|
149
|
+
sm: {
|
|
150
|
+
base: string;
|
|
151
|
+
};
|
|
152
|
+
md: {
|
|
153
|
+
base: string;
|
|
154
|
+
};
|
|
155
|
+
lg: {
|
|
156
|
+
base: string;
|
|
157
|
+
};
|
|
158
|
+
xl: {
|
|
159
|
+
base: string;
|
|
160
|
+
};
|
|
161
|
+
'2xl': {
|
|
162
|
+
base: string;
|
|
163
|
+
};
|
|
164
|
+
'3xl': {
|
|
165
|
+
base: string;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
}, {
|
|
169
|
+
root: string;
|
|
170
|
+
base: string;
|
|
171
|
+
}>;
|
|
172
|
+
slots: Partial<Record<AvatarGroupSlots, string>>;
|
|
173
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
export const avatarGroupVariants = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
root: 'inline-flex flex-row-reverse justify-end',
|
|
5
|
+
base: 'relative rounded-full ring-surface first:me-0'
|
|
6
|
+
},
|
|
7
|
+
variants: {
|
|
8
|
+
size: {
|
|
9
|
+
'3xs': {
|
|
10
|
+
base: 'ring -me-0.5'
|
|
11
|
+
},
|
|
12
|
+
'2xs': {
|
|
13
|
+
base: 'ring -me-0.5'
|
|
14
|
+
},
|
|
15
|
+
xs: {
|
|
16
|
+
base: 'ring -me-0.5'
|
|
17
|
+
},
|
|
18
|
+
sm: {
|
|
19
|
+
base: 'ring-2 -me-1.5'
|
|
20
|
+
},
|
|
21
|
+
md: {
|
|
22
|
+
base: 'ring-2 -me-1.5'
|
|
23
|
+
},
|
|
24
|
+
lg: {
|
|
25
|
+
base: 'ring-2 -me-1.5'
|
|
26
|
+
},
|
|
27
|
+
xl: {
|
|
28
|
+
base: 'ring-3 -me-2'
|
|
29
|
+
},
|
|
30
|
+
'2xl': {
|
|
31
|
+
base: 'ring-3 -me-2'
|
|
32
|
+
},
|
|
33
|
+
'3xl': {
|
|
34
|
+
base: 'ring-3 -me-2'
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
defaultVariants: {
|
|
39
|
+
size: 'md'
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
export const avatarGroupDefaults = {
|
|
43
|
+
defaultVariants: avatarGroupVariants.defaultVariants,
|
|
44
|
+
slots: {}
|
|
45
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AvatarGroup } from './AvatarGroup.svelte';
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
import type { BadgeProps } from './badge.types.js'
|
|
3
|
+
|
|
4
|
+
export type Props = BadgeProps
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<script lang="ts">
|
|
8
|
+
import { badgeVariants, badgeDefaults } from './badge.variants.js'
|
|
9
|
+
import { getComponentConfig } from '../config.js'
|
|
10
|
+
import Icon from '../Icon/Icon.svelte'
|
|
11
|
+
import Avatar from '../Avatar/Avatar.svelte'
|
|
12
|
+
import type { AvatarSize } from '../Avatar/avatar.types.js'
|
|
13
|
+
|
|
14
|
+
const config = getComponentConfig('badge', badgeDefaults)
|
|
15
|
+
|
|
16
|
+
let {
|
|
17
|
+
as = 'span',
|
|
18
|
+
ui,
|
|
19
|
+
label,
|
|
20
|
+
color = config.defaultVariants.color,
|
|
21
|
+
variant = config.defaultVariants.variant,
|
|
22
|
+
size = config.defaultVariants.size,
|
|
23
|
+
square = false,
|
|
24
|
+
icon,
|
|
25
|
+
leadingIcon,
|
|
26
|
+
trailingIcon,
|
|
27
|
+
avatar,
|
|
28
|
+
class: className,
|
|
29
|
+
leading,
|
|
30
|
+
children,
|
|
31
|
+
trailing,
|
|
32
|
+
...restProps
|
|
33
|
+
}: Props = $props()
|
|
34
|
+
|
|
35
|
+
const isIconOnly = $derived(!!icon || (square && !label && !children))
|
|
36
|
+
|
|
37
|
+
const classes = $derived.by(() => {
|
|
38
|
+
const slots = badgeVariants({ variant, color, size, square: isIconOnly || square })
|
|
39
|
+
return {
|
|
40
|
+
base: slots.base({ class: [config.slots.base, className, ui?.base] }),
|
|
41
|
+
label: slots.label({ class: [config.slots.label, ui?.label] }),
|
|
42
|
+
leadingIcon: slots.leadingIcon({ class: [config.slots.leadingIcon, ui?.leadingIcon] }),
|
|
43
|
+
trailingIcon: slots.trailingIcon({ class: [config.slots.trailingIcon, ui?.trailingIcon] }),
|
|
44
|
+
leadingAvatar: slots.leadingAvatar({ class: [config.slots.leadingAvatar, ui?.leadingAvatar] }),
|
|
45
|
+
leadingAvatarSize: slots.leadingAvatarSize() as AvatarSize
|
|
46
|
+
}
|
|
47
|
+
})
|
|
48
|
+
</script>
|
|
49
|
+
|
|
50
|
+
<svelte:element this={as} class={classes.base} {...restProps}>
|
|
51
|
+
{#if leading}
|
|
52
|
+
{@render leading()}
|
|
53
|
+
{:else if avatar}
|
|
54
|
+
<Avatar {...avatar} size={classes.leadingAvatarSize} class={classes.leadingAvatar} />
|
|
55
|
+
{:else if leadingIcon}
|
|
56
|
+
<Icon name={leadingIcon} class={classes.leadingIcon} />
|
|
57
|
+
{/if}
|
|
58
|
+
|
|
59
|
+
{#if icon}
|
|
60
|
+
<Icon name={icon} class={classes.leadingIcon} />
|
|
61
|
+
{:else if !isIconOnly}
|
|
62
|
+
{#if label != null}
|
|
63
|
+
<span class={classes.label}>{label}</span>
|
|
64
|
+
{:else if children}
|
|
65
|
+
<span class={classes.label}>{@render children()}</span>
|
|
66
|
+
{/if}
|
|
67
|
+
{/if}
|
|
68
|
+
|
|
69
|
+
{#if trailing}
|
|
70
|
+
{@render trailing()}
|
|
71
|
+
{:else if trailingIcon}
|
|
72
|
+
<Icon name={trailingIcon} class={classes.trailingIcon} />
|
|
73
|
+
{/if}
|
|
74
|
+
</svelte:element>
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
import type { ClassNameValue } from 'tailwind-merge';
|
|
4
|
+
import type { BadgeVariantProps, BadgeSlots } from './badge.variants.js';
|
|
5
|
+
import type { AvatarProps } from '../Avatar/avatar.types.js';
|
|
6
|
+
export type BadgeProps = Omit<HTMLAttributes<HTMLSpanElement>, 'class'> & {
|
|
7
|
+
/**
|
|
8
|
+
* Sets the HTML element type to render.
|
|
9
|
+
* @default 'span'
|
|
10
|
+
*/
|
|
11
|
+
as?: keyof HTMLElementTagNameMap;
|
|
12
|
+
/**
|
|
13
|
+
* Override styles for specific badge slots.
|
|
14
|
+
* Available slots: base, label, leadingIcon, trailingIcon, leadingAvatar.
|
|
15
|
+
*/
|
|
16
|
+
ui?: Partial<Record<BadgeSlots, ClassNameValue>>;
|
|
17
|
+
/**
|
|
18
|
+
* Sets the text content displayed inside the badge.
|
|
19
|
+
*/
|
|
20
|
+
label?: string | number;
|
|
21
|
+
/**
|
|
22
|
+
* Sets the color scheme applied to the badge.
|
|
23
|
+
* @default 'primary'
|
|
24
|
+
*/
|
|
25
|
+
color?: NonNullable<BadgeVariantProps['color']>;
|
|
26
|
+
/**
|
|
27
|
+
* Sets the visual style variant of the badge.
|
|
28
|
+
* @default 'solid'
|
|
29
|
+
*/
|
|
30
|
+
variant?: NonNullable<BadgeVariantProps['variant']>;
|
|
31
|
+
/**
|
|
32
|
+
* Controls the size of the badge.
|
|
33
|
+
* @default 'md'
|
|
34
|
+
*/
|
|
35
|
+
size?: NonNullable<BadgeVariantProps['size']>;
|
|
36
|
+
/**
|
|
37
|
+
* Renders the badge with equal padding for a square shape.
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
40
|
+
square?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Sets the icon for an icon-only badge.
|
|
43
|
+
* Accepts any Iconify icon name.
|
|
44
|
+
*/
|
|
45
|
+
icon?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Sets the icon displayed before the label.
|
|
48
|
+
* Accepts any Iconify icon name.
|
|
49
|
+
*/
|
|
50
|
+
leadingIcon?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Sets the icon displayed after the label.
|
|
53
|
+
* Accepts any Iconify icon name.
|
|
54
|
+
*/
|
|
55
|
+
trailingIcon?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Configures the avatar displayed on the leading side.
|
|
58
|
+
*/
|
|
59
|
+
avatar?: AvatarProps;
|
|
60
|
+
/**
|
|
61
|
+
* Additional CSS classes for the root element.
|
|
62
|
+
*/
|
|
63
|
+
class?: ClassNameValue;
|
|
64
|
+
/**
|
|
65
|
+
* Custom leading content slot.
|
|
66
|
+
* Takes precedence over avatar and leadingIcon.
|
|
67
|
+
*/
|
|
68
|
+
leading?: Snippet;
|
|
69
|
+
/**
|
|
70
|
+
* Custom trailing content slot.
|
|
71
|
+
* Takes precedence over trailingIcon.
|
|
72
|
+
*/
|
|
73
|
+
trailing?: Snippet;
|
|
74
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|