Field & Input Group

フィールド、ラベル、説明、エラー、アドオン付きの入力グループ。システムでスタイルを整えたネイティブの入力欄です。

対応フレームワーク
  • Angular: 対応
  • Vue: 対応
  • React: 対応
  • React Native: 対応

使い方

Shown to people you share notes with.

https://
GB
Notify me about

インポート

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 リファレンス

SoneFieldContentDirectiveディレクティブ

セレクター
[soneFieldContent]

SoneFieldDescriptionDirectiveディレクティブ

セレクター
[soneFieldDescription]

SoneFieldDirectiveディレクティブ

セレクター
[soneField]
入力
名前型 デフォルト
orientationFieldOrientation"vertical"
invalidbooleanfalse
disabledbooleanfalse

SoneFieldErrorDirectiveディレクティブ

セレクター
[soneFieldError]

SoneFieldGroupDirectiveディレクティブ

セレクター
[soneFieldGroup]
入力
名前型 デフォルト
variant"default" | "choices""default"

SoneFieldLabelDirectiveディレクティブ

セレクター
[soneFieldLabel]

SoneFieldLabelOptionalDirectiveディレクティブ

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

セレクター
[soneFieldLabelOptional]

SoneFieldLegendDirectiveディレクティブ

セレクター
legend[soneFieldLegend]
入力
名前型 デフォルト
variant"legend" | "label""legend"

SoneFieldSeparatorContentDirectiveディレクティブ

セレクター
[soneFieldSeparatorContent]

SoneFieldSeparatorDirectiveディレクティブ

セレクター
[soneFieldSeparator]

SoneFieldSetDirectiveディレクティブ

セレクター
fieldset[soneFieldSet]

SoneFieldTitleDirectiveディレクティブ

セレクター
[soneFieldTitle]

SoneInputGroupAddonDirectiveディレクティブ

セレクター
[soneInputGroupAddon]
入力
名前型 デフォルト
alignInputGroupAddonAlign"inline-start"

SoneInputGroupControlDirectiveディレクティブ

セレクター
input[soneInputGroupInput], textarea[soneInputGroupTextarea]

SoneInputGroupDirectiveディレクティブ

セレクター
[soneInputGroup]
入力
名前型 デフォルト
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"

SoneInputGroupTextDirectiveディレクティブ

セレクター
[soneInputGroupText]

SoneLabelDirectiveディレクティブ

セレクター
label[soneLabel], span[soneLabel]