A customizable checkbox component with labels and states.
Installation
Usage
import { CheckboxDemo } from "viora-ui";import { CheckboxDemo } from "viora-ui";
export default function CheckboxDemoDemo() {
return (
<div className="flex min-h-[350px] w-full items-center justify-center p-6">
<CheckboxDemo />
</div>
);
}API Reference
CheckboxDemo
| Prop | Type | Default | Description |
|---|---|---|---|
| id? | string | - | Configuration for id. |
| checked? | boolean | false | Configuration for checked. |
| onChange? | (checked: boolean) => void | - | Callback fired on change event. |
| className? | string | "" | Additional CSS classes for custom styling. |
Built by Otis
Last updated: 9/13/2026