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=""><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>);}
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 [corner-shape:squircle] bg-card text-card-foreground p-6 shadow-popover [&>[data-uiify-description-term]]:font-[number:var(--weight-medium)] [&>[data-uiify-description-details]]:min-w-0 [&>[data-uiify-description-details]]:m-0 [&>[data-uiify-description-details]]:[overflow-wrap:anywhere] max-[32rem]:grid-cols-1 max-[32rem]:gap-y-1 max-[32rem]:[&>[data-uiify-description-term]:not(:first-child)]:mt-3 " ><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> );}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
/* app.css */@layerreset,ui,app,tokens,base,demo,components,utilities,theme;@import"@gunkin/uiify/styles/reset";@import"@gunkin/uiify/components/behavior.css";@import"@gunkin/uiify/styles/tokens";@import"@gunkin/uiify/styles/tailwind";@import"tailwindcss/utilities.css";@theme{--spacing:0.25rem;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;}@sourceinline('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 [corner-shape:squircle] bg-card text-card-foreground p-6 shadow-popover [&>[data-uiify-description-term]]:font-[number:var(--weight-medium)] [&>[data-uiify-description-details]]:min-w-0 [&>[data-uiify-description-details]]:m-0 [&>[data-uiify-description-details]]:[overflow-wrap:anywhere] max-[32rem]:grid-cols-1 max-[32rem]:gap-y-1 max-[32rem]:[&>[data-uiify-description-term]:not(:first-child)]:mt-3');@layerbase{:root{--uiify-control-text:var(--text-sm);}@media(pointer:coarse){:root{--uiify-control-text:var(--text-base);}}}/* Authored animation and registered properties used by the Tailwind skin. * Visual rules belong in utility recipes; only at-rule definitions live here. */@layercomponents{@keyframesuiify-presence-in{from{opacity:0;scale:var(--presence-scale);}}}@layercomponents{@keyframesuiify-presence-out{to{opacity:0;scale:var(--presence-scale);}}}@property--uiify-spinner-tail{syntax:"<angle>";inherits:false;initial-value:0deg;}@property--uiify-spinner-length{syntax:"<angle>";inherits:false;initial-value:36deg;}@layercomponents{@keyframesuiify-spinner-rotate{to{transform:rotate(360deg);}}}@layercomponents{@keyframesuiify-spinner-orbit{0%{--uiify-spinner-tail:0deg;--uiify-spinner-length:36deg;}50%{--uiify-spinner-tail:90deg;--uiify-spinner-length:324deg;}100%{--uiify-spinner-tail:360deg;--uiify-spinner-length:36deg;}}}@layercomponents{@keyframesuiify-skeleton-pulse{50%{opacity:0.45;}}}@layercomponents{@keyframesuiify-skeleton-shimmer{to{background-position:-200%0;}}}@layercomponents{@keyframesuiify-skeleton-reveal{from{opacity:0;}to{opacity:1;}}}@property--candle-body-height{syntax:"<percentage>";inherits:true;initial-value:0%;}@property--candle-body-top{syntax:"<percentage>";inherits:true;initial-value:50%;}@property--candle-slot{syntax:"<percentage>";inherits:true;initial-value:100%;}@property--candle-wick-height{syntax:"<percentage>";inherits:true;initial-value:0%;}@property--candle-wick-top{syntax:"<percentage>";inherits:true;initial-value:50%;}@property--candle-x{syntax:"<percentage>";inherits:true;initial-value:0%;}@property--candle-scale{syntax:"<number>";inherits:true;initial-value:1;}@property--line-y{syntax:"<percentage>";inherits:true;initial-value:50%;}@property--line-prev-y{syntax:"<percentage>";inherits:true;initial-value:50%;}@property--line-count{syntax:"<integer>";inherits:false;initial-value:1;}@property--line-scale{syntax:"<number>";inherits:true;initial-value:1;}@layercomponents{@keyframesuiify-otp-input-caret-blink{50%{opacity:0;}}}
Ejemplos
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";exportdefaultfunctionExample(){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
Tipo
Predeterminado
Descripción
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)
—
Reemplaza el elemento renderizado y conserva las conexiones de comportamiento y accesibilidad.
DescriptionTerm
Prop
Tipo
Predeterminado
Descripción
children
ReactNode
—
Term text naming the following details.
render
ReactElement | ((props, state) => ReactElement)
—
Reemplaza el elemento renderizado y conserva las conexiones de comportamiento y accesibilidad.
DescriptionDetails
Prop
Tipo
Predeterminado
Descripción
children
ReactNode
—
Description content associated with the preceding term.
render
ReactElement | ((props, state) => ReactElement)
—
Reemplaza el elemento renderizado y conserva las conexiones de comportamiento y accesibilidad.
Teclado
Tecla
Acción
Accesibilidad
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.