We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1327b6 commit 1754ccbCopy full SHA for 1754ccb
src/components/Badge/Badge.svelte
@@ -10,7 +10,7 @@
10
export let small: SvelteBadgeProps['small'] = false
11
export let rounded: SvelteBadgeProps['rounded'] = false
12
export let className: SvelteBadgeProps['className'] = ''
13
- export let onClick: SvelteBadgeProps['onClick'] = () => {}
+ export let onClick: SvelteBadgeProps['onClick'] = null
14
15
const classes = classNames([
16
styles.badge,
src/components/Badge/badge.ts
@@ -17,7 +17,7 @@ export type BadgeProps = {
17
}
18
19
export type SvelteBadgeProps = {
20
- onClick?: MouseEventHandler<HTMLButtonElement>
+ onClick?: MouseEventHandler<HTMLButtonElement> | null
21
} & BadgeProps
22
23
export type ReactBadgeProps = {
0 commit comments