Field & Input Group

Pola, etykiety, opisy, błędy i grupy pól z dodatkami — natywne pola stylowane przez system.

Dostępny w
  • Angular: dostępny
  • Vue: dostępny
  • React: dostępny
  • React Native: dostępny

Użycie

Shown to people you share notes with.

https://
GB
Notify me about

Import

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

Dokumentacja API

SoneFieldContentDirectiveDyrektywa

Selektor
[soneFieldContent]

SoneFieldDescriptionDirectiveDyrektywa

Selektor
[soneFieldDescription]

SoneFieldDirectiveDyrektywa

Selektor
[soneField]
Wejścia
NazwaTyp Domyślnie
orientationFieldOrientation"vertical"
invalidbooleanfalse
disabledbooleanfalse

SoneFieldErrorDirectiveDyrektywa

Selektor
[soneFieldError]

SoneFieldGroupDirectiveDyrektywa

Selektor
[soneFieldGroup]
Wejścia
NazwaTyp Domyślnie
variant"default" | "choices""default"

SoneFieldLabelDirectiveDyrektywa

Selektor
[soneFieldLabel]

SoneFieldLabelOptionalDirectiveDyrektywa

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

Selektor
[soneFieldLabelOptional]

SoneFieldLegendDirectiveDyrektywa

Selektor
legend[soneFieldLegend]
Wejścia
NazwaTyp Domyślnie
variant"legend" | "label""legend"

SoneFieldSeparatorContentDirectiveDyrektywa

Selektor
[soneFieldSeparatorContent]

SoneFieldSeparatorDirectiveDyrektywa

Selektor
[soneFieldSeparator]

SoneFieldSetDirectiveDyrektywa

Selektor
fieldset[soneFieldSet]

SoneFieldTitleDirectiveDyrektywa

Selektor
[soneFieldTitle]

SoneInputGroupAddonDirectiveDyrektywa

Selektor
[soneInputGroupAddon]
Wejścia
NazwaTyp Domyślnie
alignInputGroupAddonAlign"inline-start"

SoneInputGroupControlDirectiveDyrektywa

Selektor
input[soneInputGroupInput], textarea[soneInputGroupTextarea]

SoneInputGroupDirectiveDyrektywa

Selektor
[soneInputGroup]
Wejścia
NazwaTyp Domyślnie
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"

SoneInputGroupTextDirectiveDyrektywa

Selektor
[soneInputGroupText]

SoneLabelDirectiveDyrektywa

Selektor
label[soneLabel], span[soneLabel]