折りたたみ

折りたたんだり展開したりできるコンテンツエリア。

いつ使用するか

  • ページをきれいに保つために複雑な領域をグループ化または非表示にするために使用できます。
  • アコーディオンは特別な種類の折りたたみで、一度に1つのパネルのみを展開できます。

折りたたみ

同時に複数のパネルを展開できます。

A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome guest in many households across the world.
A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome guest in many households across the world.
A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome guest in many households across the world.

アコーディオン

アコーディオンモード、一度に展開できるパネルは1つだけです。

This is panel header 1 content
This is panel header 2 content
This is panel header 3 content

追加ノード / アイコン

`icon` と `expandIcon` プロパティを使用してアイコンをカスタマイズできます。

Manage your account settings and preferences.
View and update your payment methods and billing history.
Configure how you receive alerts and updates.

カスタムパネルヘッダー

`title`スロットを使用して、各パネルのヘッダースタイルをカスタマイズします。

This item uses a custom slot for the title to allow complex layouts.

API

Accordion

プロパティ
説明
タイプ
デフォルト

type

同時に展開されるアイテムを"single"または"multiple"のいずれかに許可する動作を設定します。 "single" | "multiple" "multiple"

class

アコーディオンコンテナに適用する追加のCSSクラス。 string ''

AccordionItem

プロパティ
説明
タイプ
デフォルト

title

アコーディオンアイテムのテキストタイトル。 string ''

isOpen

アイテムがデフォルトで開いているかどうか。 boolean false

icon

タイトルの左側に表示するアイコン。 IconName ''

expandIcon

展開トリガーのために右側に表示するアイコン。 IconName "ChevronDown"

class

アイテムの追加のCSSクラス。 string ''