Checkmark
Small checkmark indicator used inside controls to represent boolean state.
import { Button, T, Checkmark } from '@kaynora/ui' import { useState } from 'react' export default function () { const [state, setState] = useState(true) return ( <div style={{ display: 'flex', flexFlow: 'row nowrap', gap: '16px', alignItems: 'center', }}> <Checkmark state={state} /> <Button onClick={() => setState(!state)}> <T>Toggle state</T> </Button> </div> ) }
<Checkmark />
| Prop | Type | Default |
|---|---|---|
state | | false |
color | | 'dimmed' |