View as Markdown

API reference

@salmonui/inputs/checkbox

7 exported symbols: 2 components, 3 interfaces and 2 types. Each name links its page with the signature, docs and members.

import { … } from '@salmonui/inputs/checkbox';

Components

  • CheckboxCheckbox on a native <input type="checkbox">, labelled by its children. Inside a CheckboxGroup it toggles its value in the group's array. ref is the input; unk…
  • CheckboxGroupSeveral checkboxes as one string[] value: a <fieldset> named by label, with description, error and required (at least one).

Interfaces

Types

  • CheckedChangeDetailsSecond argument of onCheckedChange: reason is 'toggle' (click, Space) or 'reset' (form reset).
  • LabelPlacementWhere the label sits relative to the control.