0
000h by Cojeev
/
ui
/
switch
Switch
· 000h by Cojeev
Turns a named binary setting on or off.
npx shadcn@latest add
@000h-cojeev/switch
Preview
Switch on 000h by Cojeev's site (opens in a new tab)
Loading the source for
switch
…
Files
Code
Info
Registry Items
components
1
ui
1
switch.tsx
styles
1
switch
Configuration
Name
switch
Type
UI
Description
Turns a named binary setting on or off.
Files · 4
switch.tsx
components/ui/switch.tsx
switch.css
styles/cojeev/switch.css
control-appearance.css
styles/cojeev/control-appearance.css
choice-foundations.css
styles/cojeev/choice-foundations.css
Dependencies
npm packages
class-variance-authority
@radix-ui/react-switch
Registry items
https://cojeev.com/ui/r/cojeev.json
Registry Items
components
1
ui
1
switch.tsx
styles
1
switch
Configuration
Name
switch
Type
UI
Description
Turns a named binary setting on or off.
Files · 4
switch.tsx
components/ui/switch.tsx
switch.css
styles/cojeev/switch.css
control-appearance.css
styles/cojeev/control-appearance.css
choice-foundations.css
styles/cojeev/choice-foundations.css
Dependencies
npm packages
class-variance-authority
@radix-ui/react-switch
Registry items
https://cojeev.com/ui/r/cojeev.json