Formssrc/components/ui/toggle.tsx
Toggle
A two-state button for on/off controls.
Preview
Installation
Copy the component source into your project with `degit`. This port is intentionally not distributed as an npm package.
bunx degit https://github.com/LiasCode/shadcn-preact/src/components/ui#main ./src/components/uiUsage
import { Toggle } from "@/components/ui/toggle"
export function Example() {
return <Toggle>Toggle</Toggle>
}API Reference
ExportPurpose
ToggleComposable part exported by `@/components/ui/toggle`.