Checkbox
A square box that fills with ember when checked.
import { Checkbox } from "@forgeron/ui";import { Checkbox } from "@forgeron/ui";
export default function Default() {
return (
<div style={{ display: "grid" }}>
<Checkbox label="Send a copy to the client" defaultChecked />
<Checkbox label="Attach the invoice as PDF" />
<Checkbox label="Archived" disabled />
</div>
);
}API → Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | ReactNode | — | Always written next to the box. |
...rest | InputHTMLAttributes | — | checked, defaultChecked, onChange… |
className | string | — | Extra classes. |