Checkbox

A caixa de seleção nativa com estado indeterminado, ligada ao seu rótulo por um campo, para formulários e listas “selecionar tudo”.

Disponível em
  • Angular: disponível
  • Vue: disponível
  • React: disponível
  • React Native: disponível

Uso

Partly read.

Importação

ts
import {
  SoneCheckboxDirective,
} from "@surface-one/angular/checkbox";

Referência da API

SoneCheckboxDirectiveDiretiva

`input[soneCheckbox]` — the native checkbox (spartan/ui Checkbox, native first): it stays an `<input type="checkbox">`, so `[checked]`, `(change)`, `ngModel`, `formControl`, `required` and a `<label for>` all work as they do on any checkbox, and the global form styles draw it. The directive adds the mixed state the markup cannot express: `[(indeterminate)]`, cleared when the user toggles it.

Seletor
input[soneCheckbox]
Exportado como
soneCheckbox
Inputs
NomeTipo Padrão
indeterminatebidirecional

The mixed state ("some of them") — `[(indeterminate)]`; a click clears it.

booleanfalse