Field & Input Group

Felder, Labels, Beschreibungen, Fehler und Eingabegruppen mit Add-ons — native Eingabefelder, vom System gestaltet.

Verfügbar für
  • Angular: verfügbar
  • Vue: verfügbar
  • React: verfügbar
  • React Native: verfügbar

Verwendung

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";

API-Referenz

SoneFieldContentDirectiveDirektive

Selektor
[soneFieldContent]

SoneFieldDescriptionDirectiveDirektive

Selektor
[soneFieldDescription]

SoneFieldDirectiveDirektive

Selektor
[soneField]
Inputs
NameTyp Standard
orientationFieldOrientation"vertical"
invalidbooleanfalse
disabledbooleanfalse

SoneFieldErrorDirectiveDirektive

Selektor
[soneFieldError]

SoneFieldGroupDirectiveDirektive

Selektor
[soneFieldGroup]
Inputs
NameTyp Standard
variant"default" | "choices""default"

SoneFieldLabelDirectiveDirektive

Selektor
[soneFieldLabel]

SoneFieldLabelOptionalDirectiveDirektive

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

Selektor
[soneFieldLabelOptional]

SoneFieldLegendDirectiveDirektive

Selektor
legend[soneFieldLegend]
Inputs
NameTyp Standard
variant"legend" | "label""legend"

SoneFieldSeparatorContentDirectiveDirektive

Selektor
[soneFieldSeparatorContent]

SoneFieldSeparatorDirectiveDirektive

Selektor
[soneFieldSeparator]

SoneFieldSetDirectiveDirektive

Selektor
fieldset[soneFieldSet]

SoneFieldTitleDirectiveDirektive

Selektor
[soneFieldTitle]

SoneInputGroupAddonDirectiveDirektive

Selektor
[soneInputGroupAddon]
Inputs
NameTyp Standard
alignInputGroupAddonAlign"inline-start"

SoneInputGroupControlDirectiveDirektive

Selektor
input[soneInputGroupInput], textarea[soneInputGroupTextarea]

SoneInputGroupDirectiveDirektive

Selektor
[soneInputGroup]
Inputs
NameTyp Standard
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"

SoneInputGroupTextDirectiveDirektive

Selektor
[soneInputGroupText]

SoneLabelDirectiveDirektive

Selektor
label[soneLabel], span[soneLabel]