diff options
Diffstat (limited to 'packages/ui/src/components/switch.tsx')
| -rw-r--r-- | packages/ui/src/components/switch.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/ui/src/components/switch.tsx b/packages/ui/src/components/switch.tsx index a8600aef4..f4f95baf5 100644 --- a/packages/ui/src/components/switch.tsx +++ b/packages/ui/src/components/switch.tsx @@ -10,7 +10,7 @@ export interface SwitchProps extends ParentProps<ComponentProps<typeof Kobalte>> export function Switch(props: SwitchProps) { const [local, others] = splitProps(props, ["children", "class", "hideLabel", "description"]) return ( - <Kobalte {...others} data-component="switch"> + <Kobalte {...others} class={local.class} data-component="switch"> <Kobalte.Input data-slot="switch-input" /> <Show when={local.children}> <Kobalte.Label data-slot="switch-label" classList={{ "sr-only": local.hideLabel }}> |
