Item
リストアイテムを構成するためのコンポーネント群。
インポート
基本的な使い方
Loading...
バリアント
Loading...
サイズ
Loading...
インタラクティブ
interactiveプロパティを使用すると、クリック可能なスタイルが適用されます。
Loading...
メディアバリアント
デフォルトアイコン
Loading...
背景付きアイコン
Loading...
画像
Loading...
アバター
Loading...
アクション付き
Loading...
グループ化
Loading...
実際の使用例
連絡先リスト
Loading...
ファイル一覧
Loading...
設定メニュー
Loading...
Props
Item
| Prop | Type | Default | Description |
|---|---|---|---|
variant | 'base' | 'outline' | 'muted' | 'ghost' | 'base' | アイテムのスタイルバリアント |
size | 'sm' | 'default' | 'lg' | 'default' | アイテムのサイズ |
interactive | boolean | false | ホバー時のスタイルを適用 |
asChild | boolean | false | 子要素をコンポーネントとして使用 |
ItemMedia
| Prop | Type | Default | Description |
|---|---|---|---|
variant | 'default' | 'icon' | 'image' | 'avatar' | 'default' | メディアのスタイルバリアント |
ItemGroup, ItemContent, ItemHeader, ItemTitle, ItemDescription, ItemActions, ItemFooter
これらのコンポーネントは標準のHTML属性を受け付けます。
ItemSeparator
| Prop | Type | Default | Description |
|---|---|---|---|
orientation | 'horizontal' | 'vertical' | 'horizontal' | セパレーターの方向 |
decorative | boolean | true | 装飾目的かどうか |