// Native checkbox with a token-drawn indicator. The label element wraps the // input, so the whole row is a hit target without a manual `for`/`id` pairing. import type { JSX } from 'solid-js'; import { ariaBool } from '../a11y'; import { cx } from '../cx'; import styles from './Checkbox.module.scss'; export interface CheckboxProps { /** Already-translated label. Required — an unlabelled checkbox is a bug. */ label: string; id?: string | undefined; name?: string | undefined; value?: string | undefined; /** * The id of the `