Checkbox
Props
| Prop | Type | Default |
|---|---|---|
| color | 'base' | 'brand' | undefined | - |
| contrast | boolean | undefined | - |
| label | string | undefined | - |
| icon | string | undefined | - |
| as | HTMLTag | input |
| HTML Attributes | Polymorphic<input> | - |
Examples
---
import Checkbox from 'fulldev-ui/components/Checkbox.astro'
---
<Checkbox label="My Checkbox" color="base" />
---
import Checkbox from 'fulldev-ui/components/Checkbox.astro'
---
<Checkbox label="Base" color="base" />
<Checkbox label="Brand" color="brand" />
---
import Checkbox from 'fulldev-ui/components/Checkbox.astro'
---
<Checkbox label="Small" size="sm" />
<Checkbox label="Medium" size="md" />
<Checkbox label="Large" size="lg" />