Field & Input Group

Champs, libellés, descriptions, erreurs et groupes de champs avec compléments — des champs natifs stylés par le système.

Disponible pour
  • Angular: disponible
  • Vue: disponible
  • React: disponible
  • React Native: disponible

Utilisation

Shown to people you share notes with.

https://
GB
Notify me about

Importation

ts
import {
  SoneFieldContentDirective,
  SoneFieldDescriptionDirective,
  SoneFieldDirective,
  SoneFieldErrorDirective,
  SoneFieldGroupDirective,
  SoneFieldLabelDirective,
  SoneFieldLabelOptionalDirective,
  SoneFieldLegendDirective,
  SoneFieldSeparatorContentDirective,
  SoneFieldSeparatorDirective,
  SoneFieldSetDirective,
  SoneFieldTitleDirective,
  SoneInputGroupAddonDirective,
  SoneInputGroupControlDirective,
  SoneInputGroupDirective,
  SoneInputGroupTextDirective,
  SoneLabelDirective,
} from "@surface-one/angular/input";

Référence de l’API

SoneFieldContentDirectiveDirective

Sélecteur
[soneFieldContent]

SoneFieldDescriptionDirectiveDirective

Sélecteur
[soneFieldDescription]

SoneFieldDirectiveDirective

Sélecteur
[soneField]
Inputs
NomType Par défaut
orientationFieldOrientation"vertical"
invalidbooleanfalse
disabledbooleanfalse

SoneFieldErrorDirectiveDirective

Sélecteur
[soneFieldError]

SoneFieldGroupDirectiveDirective

Sélecteur
[soneFieldGroup]
Inputs
NomType Par défaut
variant"default" | "choices""default"

SoneFieldLabelDirectiveDirective

Sélecteur
[soneFieldLabel]

SoneFieldLabelOptionalDirectiveDirective

`[soneFieldLabelOptional]` — the quiet "Optional" marker inside a field label: `<label soneFieldLabel>Notes <span soneFieldLabelOptional>Optional</span></label>`.

Sélecteur
[soneFieldLabelOptional]

SoneFieldLegendDirectiveDirective

Sélecteur
legend[soneFieldLegend]
Inputs
NomType Par défaut
variant"legend" | "label""legend"

SoneFieldSeparatorContentDirectiveDirective

Sélecteur
[soneFieldSeparatorContent]

SoneFieldSeparatorDirectiveDirective

Sélecteur
[soneFieldSeparator]

SoneFieldSetDirectiveDirective

Sélecteur
fieldset[soneFieldSet]

SoneFieldTitleDirectiveDirective

Sélecteur
[soneFieldTitle]

SoneInputGroupAddonDirectiveDirective

Sélecteur
[soneInputGroupAddon]
Inputs
NomType Par défaut
alignInputGroupAddonAlign"inline-start"

SoneInputGroupControlDirectiveDirective

Sélecteur
input[soneInputGroupInput], textarea[soneInputGroupTextarea]

SoneInputGroupDirectiveDirective

Sélecteur
[soneInputGroup]
Inputs
NomType Par défaut
invalidbooleanfalse
disabledbooleanfalse
fill

Take the free space of a flex row (`flex: 1`, may shrink) — a search box beside buttons.

booleanfalse
variant

`filled`: a grey fill instead of a border (the focus ring stays). A filled field has no 3:1 boundary of its own, so keep it to search boxes that a leading search glyph and a placeholder identify.

InputGroupVariant"default"

SoneInputGroupTextDirectiveDirective

Sélecteur
[soneInputGroupText]

SoneLabelDirectiveDirective

Sélecteur
label[soneLabel], span[soneLabel]