انتقل إلى المحتوى
uiify

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

الخاصيةالنوعافتراضيالوصف
childrenReactNode—DescriptionTerm and DescriptionDetails pairs in source order.
className / style / ref / native dl propsnative dl props—Native description-list props, styles, events, and ref are forwarded.
renderReactElement | ((props, state) => ReactElement)—استبدل العنصر المعروض مع الحفاظ على توصيلات السلوك وإمكانية الوصول.

DescriptionTerm

الخاصيةالنوعافتراضيالوصف
childrenReactNode—Term text naming the following details.
renderReactElement | ((props, state) => ReactElement)—استبدل العنصر المعروض مع الحفاظ على توصيلات السلوك وإمكانية الوصول.

DescriptionDetails

الخاصيةالنوعافتراضيالوصف
childrenReactNode—Description content associated with the preceding term.
renderReactElement | ((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
تُرجمت هذه الصفحة آليًا ولم تُراجع بعد.