アイコンボタン

コンパクトでアクセシブルなアイコンのみのボタンでアクションをトリガーする。

入力、選択、バリデーション、日付、ネイティブなフォーム動作。

lr-icon-button

import '@aceshooting/lyra-ui/components/lr-icon-button.js';

例

import '@aceshooting/lyra-ui/components/lr-icon-button.js';
import '@aceshooting/lyra-ui/components/lr-icon.js';

<div style="display:flex;gap:8px;align-items:center;justify-content:center">
<lr-icon-button icon="search" aria-label="Search">
</lr-icon-button>
<lr-icon-button icon="add" aria-label="Add">
</lr-icon-button>
<lr-icon-button icon="trash" aria-label="Delete">
</lr-icon-button>
<lr-icon-button icon="close" aria-label="Close" disabled>
</lr-icon-button>
</div>

ガイドを読む(英語)

関連コンポーネント

  • テキスト入力 — ラベル、ヒント、インラインバリデーション表示(任意)を備えた1行テキストフィールド。
  • 国セレクター — 翻訳された名前、国旗、任意の検索機能を使って国や地域のコードを選択します。
  • 通貨セレクター — 翻訳された名前、記号、任意の検索機能を使って通貨コードを選択します。
  • タイムゾーンセレクター — 順序付きリストからタイムゾーン識別子を選択します。検索機能は任意で有効にできます。
  • 単位セレクター — 翻訳された名前、記号、任意の検索機能を使って測定単位を選択します。
  • ロケールピッカー — ライブラリ独自のロケールレジストリを情報源とする、アクティブなロケールを切り替えるためのクローズドリスト形式のドロップダウン。