snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
17
apps/v4/examples/base/switch-sizes.tsx
Normal file
17
apps/v4/examples/base/switch-sizes.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
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>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user