Checkbox
A checkbox that fills from the centre with a small overshoot while the tick draws itself.
- 1.6 KB .bexode
- 5 live inputs
- Responsive fit Layout
Use it
The code follows your customizations. Install with npm i exodeui.
import { ExodeUICanvas } from 'exodeui';
// checkbox.bexode goes in /public (download it below)
export function Checkbox() {
return (
<ExodeUICanvas
src="/checkbox.bexode"
fit="Contain"
autoPlay
interactive
onTrigger={(name) => {
// fires: 'checked'
}}
style={{ width: '100%', height: 560 }}
/>
);
}Inputs
| Input | Type | Default | Range |
|---|---|---|---|
accent | Text | #FF5A1F | hex colour |
onAccent | Text | #FFFFFF | hex colour |
ink | Text | #17171C | hex colour |
labelText | Text | Remember me | — |
checked | Boolean | false | — |
Events (via onTrigger): checked