@pagedotapp/page-checkbox
v0.0.0-alpha.14
Published
PageCheckbox - A reusable React component
Downloads
49
Readme
@pagedotapp/page-checkbox
A checkbox component with indeterminate state support
Installation
npm install @pagedotapp/page-checkboxUsage
import { PageCheckbox } from "@pagedotapp/page-checkbox"
function App() {
return (
<PageCheckbox
checked={isChecked}
onCheckedChange={setIsChecked}
label="Accept terms"
/>
)
}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-checkbox: ^1.3.2
- @pagedotapp/page-icon: ^0.1.0-alpha.0
License
MIT © PageStudio
