okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

Niko1221apps/host: the owner's UI and the Node App Host0b3299a01

main
532 B9 linesraw
1import { tr } from '../lib/i18n';
2import { Icon } from './ui';
3/** Native input semantics with a consistent, legible tick across browsers. */
4export function OnboardingCheckbox({ checked, onChange }: {
5    checked: boolean;
6    onChange: (checked: boolean) => void;
7}) {
8    return <span className="onboard-checkbox"><input type="checkbox" checked={checked} onChange={e => onChange(e.target.checked)}/><span className="onboard-checkbox-mark" aria-hidden="true">{tr(checked ? <Icon name="check" size={13}/> : null)}</span></span>;
9}