brijr/ui

Lab

Switch

npx shadcn@latest add @brijr/switch

Sizes

Tab through this row to see the focus ring on each size.

sm · off
default · off
sm · on
default · on

States

sm · disabled
default · disabled
sm · disabled · on
default · disabled · on
aria-invalid · off
aria-invalid · on
readOnly · on
required

With label

label after
sm · label after
disabled · Label dims

Back up the workspace every night at 2:00.

label before · with description

Turn this on to continue.

aria-invalid · error text

Settings list

many items · narrow
long label · wraps