Forms · Checkbox
SSR NativeAccessibleCheckbox
Captures an independent on/off choice with an optional explanation.
Astro
---
import { Checkbox } from '@charvesta/cetha';
---
<Checkbox id="updates" name="updates" label="Product updates" checked />API reference
| Prop | Type | Default | Description |
|---|---|---|---|
id* | string | — | Connects the input, label, and description. |
label* | string | — | Visible control label. |
description | string | — | Optional supporting text. |
class | string | — | Additional classes forwarded to the rendered element. |
Accessibility
The label is always visible and programmatically associated with the native checkbox.