mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-27 06:34:12 +00:00
18 lines
599 B
TypeScript
18 lines
599 B
TypeScript
import { Field, FieldGroup, FieldLabel } from "@/styles/base-nova/ui/field"
|
|
import { Switch } from "@/styles/base-nova/ui/switch"
|
|
|
|
export function SwitchSizes() {
|
|
return (
|
|
<FieldGroup className="w-full max-w-[10rem]">
|
|
<Field orientation="horizontal">
|
|
<Switch id="switch-size-sm" size="sm" />
|
|
<FieldLabel htmlFor="switch-size-sm">Small</FieldLabel>
|
|
</Field>
|
|
<Field orientation="horizontal">
|
|
<Switch id="switch-size-default" size="default" />
|
|
<FieldLabel htmlFor="switch-size-default">Default</FieldLabel>
|
|
</Field>
|
|
</FieldGroup>
|
|
)
|
|
}
|