Button

唯一のボタン。6 つのバリアント、4 つのテキストサイズ、4 つの正方形アイコンサイズに加え、ボタングループもあります。

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

使い方

インポート

ts
import {
  SoneButtonDirective,
  SoneButtonGroupDirective,
} from "@surface-one/angular/button";

API リファレンス

SoneButtonDirectiveディレクティブ

セレクター
button[soneBtn], a[soneBtn], label[soneBtn]
エクスポート名
soneBtn
入力
名前型 デフォルト
variant

`accent`: filled with the accent (the primary call to action where `default` is ink). `soft`: a translucent grey fill (a quiet icon button). A toggle button with `aria-pressed="true"` gets the pressed fill in `ghost`, `outline` (keeping its border) and `soft`.

ButtonVariant"default"
sizeButtonSize"default"

SoneButtonGroupDirectiveディレクティブ

セレクター
[soneButtonGroup]
入力
名前型 デフォルト
orientation"horizontal" | "vertical""horizontal"