הערך הזה ארוך במכוון כדי להדגים כיצד תוכן מפורט גולש לשורות נוספות בתוך השטח הזמין.
Status
Active
Project notes
This value is intentionally long to show that detailed content wraps within the available space.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import{DescriptionDetails,DescriptionList,DescriptionTerm}from"@gunkin/uiify";exportdefaultfunctionExample(){return(<DescriptionListclassName=""><DescriptionTermclassName="">Status</DescriptionTerm><DescriptionDetailsclassName="">Active</DescriptionDetails><DescriptionTermclassName="">Project notes</DescriptionTerm><DescriptionDetailsclassName=""> This value is intentionally long to show that detailed content wraps within the available space.</DescriptionDetails></DescriptionList>);}
import{DescriptionDetails,DescriptionList,DescriptionTerm}from"@gunkin/uiify";exportdefaultfunctionExample(){return(<DescriptionListclassName=" grid w-max max-w-[min(28rem,calc(100vw_-_2_*_var(--space-lg)))] grid-cols-[minmax(8rem,_max-content)_minmax(0,_1fr)] gap-y-3 gap-x-6 m-0 border border-border rounded-xl bg-card text-card-foreground p-6 shadow-popover max-[32rem]:grid-cols-1 max-[32rem]:gap-y-1"><DescriptionTermclassName="font-[number:var(--weight-medium)] max-[32rem]:not-first:mt-3"> Status</DescriptionTerm><DescriptionDetailsclassName="min-w-0 m-0 [overflow-wrap:anywhere]">Active</DescriptionDetails><DescriptionTermclassName="font-[number:var(--weight-medium)] max-[32rem]:not-first:mt-3"> Project notes</DescriptionTerm><DescriptionDetailsclassName="min-w-0 m-0 [overflow-wrap:anywhere]"> This value is intentionally long to show that detailed content wraps within the available space.</DescriptionDetails></DescriptionList>);}
API
DescriptionList
מאפיין
טיפוס
ברירת מחדל
תיאור
children
ReactNode
—
זוגות של DescriptionTerm ו-DescriptionDetails לפי סדר המקור.
className / style / ref / native dl props
native dl props
—
המאפיינים, הסגנונות, האירועים וה-ref של רשימת התיאורים המובנית מועברים הלאה.
render
ReactElement | ((props, state) => ReactElement)
—
החלפת האלמנט המוצג תוך שימור ההתנהגות וקישורי הנגישות.
DescriptionTerm
מאפיין
טיפוס
ברירת מחדל
תיאור
children
ReactNode
—
טקסט המונח המציין את הפרטים שאחריו.
render
ReactElement | ((props, state) => ReactElement)
—
החלפת האלמנט המוצג תוך שימור ההתנהגות וקישורי הנגישות.
DescriptionDetails
מאפיין
טיפוס
ברירת מחדל
תיאור
children
ReactNode
—
תוכן התיאור המקושר למונח הקודם.
render
ReactElement | ((props, state) => ReactElement)
—
החלפת האלמנט המוצג תוך שימור ההתנהגות וקישורי הנגישות.
מקלדת
מקש
פעולה
נגישות
סמנטיקה מובנית של dl, dt ו-dd בסדר המקור שסיפקתם. שמרו על הצימוד בין כל תיאור למונח שלו; לא מתווספים תפקידי טבלה או עמודת פעולות.