Description List
A semantic list of terms and their descriptions.
- ブラウザー
- Chrome 123+Firefox 121+Safari 17.5+
- ティア
- 0
- 強制レイアウトの上限
- 0 ms
- axe の上限
- 0
- SSR 対応
- はい
- 公開された契約
- テストハーネス
プレイグラウンド
Description List
- Status
- Active
- Project notes
- This value is intentionally long to show that detailed content wraps within the available space.
使用例
Project details
Write each term and its details in source order; the native description list supplies the semantics.
- Status
- Active
- Project notes
- This value is intentionally long to show that detailed content wraps within the available space.
import { DescriptionDetails, DescriptionList, DescriptionTerm } from "@gunkin/uiify";
export default function Example() {
return (
<DescriptionList>
<DescriptionTerm>Status</DescriptionTerm>
<DescriptionDetails>Active</DescriptionDetails>
<DescriptionTerm>Project notes</DescriptionTerm>
<DescriptionDetails>This value is intentionally long to show that detailed content wraps within the available space.</DescriptionDetails>
</DescriptionList>
);
}API
DescriptionList
| Prop | 型 | 既定値 | 説明 |
|---|---|---|---|
children | ReactNode | — | DescriptionTerm and DescriptionDetails pairs in source order. |
className / style / ref / native dl props | native dl props | — | Native description-list props, styles, events, and ref are forwarded. |
render | ReactElement | ((props, state) => ReactElement) | — | 動作とアクセシビリティの接続を維持したまま、描画する要素を置き換えます。 |
DescriptionTerm
| Prop | 型 | 既定値 | 説明 |
|---|---|---|---|
children | ReactNode | — | Term text naming the following details. |
render | ReactElement | ((props, state) => ReactElement) | — | 動作とアクセシビリティの接続を維持したまま、描画する要素を置き換えます。 |
DescriptionDetails
| Prop | 型 | 既定値 | 説明 |
|---|---|---|---|
children | ReactNode | — | Description content associated with the preceding term. |
render | ReactElement | ((props, state) => ReactElement) | — | 動作とアクセシビリティの接続を維持したまま、描画する要素を置き換えます。 |
キーボード
| キー | 操作 |
|---|
アクセシビリティ
Native dl, dt, and dd semantics in the source order you provide. Keep each description paired with its term; no table roles or action column are added.
スタイリングのフック
data-uiify-description-listdata-uiify-description-termdata-uiify-description-detailsdata-part