List
データの構造化されたリストをレンダリングするためのコンポーネント。
いつ使用するか
- リストは、単一の主題に関連するコンテンツを表示するために使用できます。コンテンツは、さまざまな種類とサイズの複数の要素で構成できます。
使用法
- JDJohn DoeSoftware Engineer
- JSJane SmithProduct Manager
astro
<List bordered divided>
<ListItem>
<Avatar fallback="JD" shape="circle" />
<ListItemMeta title="John Doe" description="Software Engineer" />
<Button slot="extra" variant="outline" size="sm">Follow</Button>
</ListItem>
<ListItem>
<Avatar fallback="JS" shape="circle" />
<ListItemMeta title="Jane Smith" description="Product Manager" />
<Button slot="extra" variant="outline" size="sm">Follow</Button>
</ListItem>
</List> API リファレンス
| プロパティ | 説明 | タイプ | デフォルト |
|---|---|---|---|
| bordered | Whether to show a border around the list. | boolean | false |
| divided | Whether to show borders between items. | boolean | false |