@pagedotapp/page-switch
v0.0.0-alpha.13
Published
PageSwitch - A reusable React component
Readme
@pagedotapp/page-switch
A toggle switch component built on Radix UI
Installation
npm install @pagedotapp/page-switchUsage
import { PageSwitch } from "@pagedotapp/page-switch"
function App() {
return <PageSwitch checked={isEnabled} onCheckedChange={setIsEnabled} />
}Props
See the TypeScript definitions for detailed prop types.
Styling
This component uses CSS modules for styling. The styles are injected automatically when you use the component.
Dependencies
Peer Dependencies
- React >=16.8.0
- React DOM >=16.8.0
Required Dependencies
- @radix-ui/react-switch: ^1.2.5
License
MIT © PageStudio
