拡張 FAB: 仕様
拡張フローティングアクションボタン(拡張 FAB)は、ユーザーが主要なアクションを実行するのに役立ちます。
バリアント

- 小型拡張 FAB
- ミディアム拡張 FAB
- 大型拡張 FAB
ベースライン バリアント
ベースライン拡張 FAB は、M3 Expressive アップデートで非推奨になりました。代わりに小型拡張 FAB を使用してください。小型拡張 FAB では、タイポグラフィスタイルが label large から title medium に更新され、内部パディングが縮小されています。ベースライン拡張 FAB の仕様を参照

- 拡張 FAB
| バリアント | M3 | M3 Expressive |
|---|---|---|
| 小型拡張 FAB | -- | 利用可能 |
| ミディアム拡張 FAB | -- | 利用可能 |
| 大型拡張 FAB | -- | 利用可能 |
| 拡張 FAB(ベースライン) | 利用可能 | 非推奨。 小型拡張 FAB を使用してください。 |
トークンと仕様
表のメニューからトークンセットを選択します。拡張 FAB のトークンは、サイズとカラーごとに整理されています。
拡張 FAB - サイズ - 小型
| Token | 値 |
|---|---|
| Extended FAB small container height | 56dp |
| Extended FAB small label text font | Roboto |
| Extended FAB small label text line height | 24pt |
| Extended FAB small label text size | 16pt |
| Extended FAB small label text weight | 500 |
| Extended FAB small label text tracking | 0.15pt |
| Extended FAB small icon size | 24dp |
| Extended FAB small container shape | 16dp |
| Extended FAB small leading space | 16dp |
| Extended FAB small icon label space | 8dp |
| Extended FAB small trailing space | 16dp |
拡張 FAB - サイズ - ミディアム
| Token | 値 |
|---|---|
| Extended FAB medium container height | 80dp |
| Extended FAB medium label text font | Roboto |
| Extended FAB medium label text line height | 28pt |
| Extended FAB medium label text size | 22pt |
| Extended FAB medium label text weight | 400 |
| Extended FAB medium label text tracking | 0 |
| Extended FAB medium icon size | 28dp |
| Extended FAB medium container shape | 20dp |
| Extended FAB medium leading space | 26dp |
| Extended FAB medium icon label space | 12dp |
| Extended FAB medium trailing space | 26dp |
拡張 FAB - サイズ - 大型
| Token | 値 |
|---|---|
| Extended FAB large container height | 96dp |
| Extended FAB large label text font | Roboto |
| Extended FAB large label text line height | 32pt |
| Extended FAB large label text size | 24pt |
| Extended FAB large label text weight | 400 |
| Extended FAB large label text tracking | 0 |
| Extended FAB large icon size | 36dp |
| Extended FAB large container shape | 28dp |
| Extended FAB large leading space | 28dp |
| Extended FAB large icon label space | 16dp |
| Extended FAB large trailing space | 28dp |
拡張 FAB - カラー - Tonal primary
拡張 FAB - カラー - Tonal secondary
拡張 FAB - カラー - Tonal tertiary
拡張 FAB - カラー - プライマリ
拡張 FAB - カラー - セカンダリ
拡張 FAB - カラー - ターシャリ
構造

- コンテナ
- ラベルテキスト
- アイコン
カラー
カラー値はデザイントークンを通じて実装します。デザインではトークンに対応するカラー値を指定し、実装では実際のカラー値を参照するトークンを使用します。デザイントークンの詳細を参照
カラースタイル
拡張 FAB では、color スタイルと on color スタイルのさまざまな組み合わせ(例:primary と on primary)を使用できます。以下のカラーマッピングはいずれも同等のコントラストと機能性を備えているため、見た目の好みに応じて選択してください。

ライトスキームとダークスキームで使用される拡張 FAB のカラーロール:
- プライマリコンテナ & on primary container(デフォルト)
- セカンダリコンテナとオンセカンダリコンテナ
- ターシャリコンテナとオンターシャリコンテナ
- プライマリとオンプライマリ
- セカンダリとオンセカンダリ
- ターシャリとオンターシャリ
ベースラインカラースタイル
拡張 FAB では、サーフェス カラースタイルを使用しないことを推奨します。サーフェス カラースタイルは現在も利用できますが、非推奨です。

- サーフェスコンテナ FAB
状態
状態は、コンポーネントやインタラクティブ要素の現在の状況を視覚的に示すものです。インタラクションステートの詳細を参照
拡張 FAB でデフォルト以外のカラーマッピングを使用する場合、ステートレイヤーの色はアイコンの色と一致させてください。たとえば、primary マッピングでは、ステートレイヤーの色を md.sys.color.primary にします。

- 有効時
- ホバー時(エレベーション 4)
- フォーカス時
- 押下時
寸法


ベースライン拡張 FAB

- コンテナ
- ラベルテキスト
- アイコン
ベースライン構成


ベースライントークン
表のメニューからトークンセットを選択します。ベースライン拡張 FAB のトークンセットは、共通トークン、サーフェス カラースタイル、ブランド カラースタイルの順に整理されています。primary、secondary、tertiary などのカラースタイルは、最新の拡張 FAB でも引き続き使用されています。
拡張 FAB - カラー - Tonal primary
拡張 FAB - カラー - プライマリ
拡張 FAB - サイズ - 大型
| Token | 値 |
|---|---|
| Extended FAB large container height | 96dp |
| Extended FAB large label text font | Google Sans |
| Extended FAB large label text line height | 32pt |
| Extended FAB large label text size | 24pt |
| Extended FAB large label text weight | 400 |
| Extended FAB large label text tracking | 0 |
| Extended FAB large icon size | 36dp |
| Extended FAB large container shape | 28dp |
| Extended FAB large leading space | 28dp |
| Extended FAB large icon label space | 16dp |
| Extended FAB large trailing space | 28dp |
拡張 FAB - サイズ - ミディアム
| Token | 値 |
|---|---|
| Extended FAB medium container height | 80dp |
| Extended FAB medium label text font | Google Sans |
| Extended FAB medium label text line height | 28pt |
| Extended FAB medium label text size | 22pt |
| Extended FAB medium label text weight | 400 |
| Extended FAB medium label text tracking | 0 |
| Extended FAB medium icon size | 28dp |
| Extended FAB medium container shape | 20dp |
| Extended FAB medium leading space | 26dp |
| Extended FAB medium icon label space | 12dp |
| Extended FAB medium trailing space | 26dp |
拡張 FAB - カラー - Tonal secondary
拡張 FAB - カラー - Tonal tertiary
拡張 FAB - サイズ - 小型
| Token | 値 |
|---|---|
| Extended FAB small container height | 56dp |
| Extended FAB small label text font | Google Sans Text |
| Extended FAB small label text line height | 24pt |
| Extended FAB small label text size | 16pt |
| Extended FAB small label text weight | 500 |
| Extended FAB small label text tracking | 0 |
| Extended FAB small icon size | 24dp |
| Extended FAB small container shape | 16dp |
| Extended FAB small leading space | 16dp |
| Extended FAB small icon label space | 8dp |
| Extended FAB small trailing space | 16dp |
拡張 FAB - サイズ - ベースライン
| Token | 値 |
|---|---|
| Extended FAB container height | 56dp |
| Extended FAB label text font | Google Sans Text |
| Extended FAB label text line height | 20pt |
| Extended FAB label text size | 14pt |
| Extended FAB label text weight | 500 |
| Extended FAB label text tracking | 0 |
| Extended FAB icon size | 24dp |
| Extended FAB container shape | 16dp |
| Extended FAB leading space | 16dp |
| Extended FAB icon label space | 12dp |
| Extended FAB trailing space | 20dp |
拡張 FAB - カラー - ターシャリ
拡張 FAB - カラー - サーフェス
拡張 FAB - カラー - セカンダリ
拡張 FAB - カラー - Branded
ベースラインカラー
カラー値はデザイントークンを通じて実装します。デザインではトークンに対応するカラー値を指定し、実装では実際のカラー値を参照するトークンを使用します。デザイントークンの詳細を参照

ライトスキームとダークスキームで使用される拡張 FAB のカラーロール:
- プライマリコンテナ + 影
- オンプライマリコンテナ
- オンプライマリコンテナ
追加のカラーマッピング
拡張 FAB では、コンテナとアイコンの色の他の組み合わせを使用できます。以下のカラーマッピングはいずれもデフォルトと同等の判読性と機能性を備えているため、使用するカラーマッピングはスタイルのみで決まります。

ベースライン状態
状態は、コンポーネントやインタラクティブ要素の現在の状況を視覚的に示すものです。インタラクションステートの詳細を参照

- 有効時
- ホバー時
- フォーカス時
- 押下時
ベースラインの寸法


| 属性 | 値 |
|---|---|
| コンテナの高さ | 56dp |
| コンテナの幅 | 可変(最小 80dp) |
| コンテナの形状 | コーナー半径 16dp |
| アイコンのサイズ | 24dp |
| パディング | 16dp |