You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Use Details to make a page easier to scan when only some users need supporting information. The React API is intentionally small: `summary` is the clickable label, `open` controls the initial expanded state, and `children` is the content shown inside the disclosure panel. Prefer Expander when the content is more important, aimed at a wider audience, or needs more visual prominence.',
41
49
},
50
+
page: ()=>(
51
+
<>
52
+
<Title/>
53
+
<Description/>
54
+
55
+
<h2>How to use the React component</h2>
56
+
<p>
57
+
Use <code>Details</code> when the disclosure is supporting
58
+
information that only some users will need. Pass the clickable
59
+
label through <code>summary</code> and the hidden content through{' '}
60
+
<code>children</code>.
61
+
</p>
62
+
<p>
63
+
Set <code>open</code> only when the content should be expanded on
64
+
first render. If the content is more prominent or intended for a
65
+
wider audience, use <code>Expander</code> instead.
'Use Expander when users may feel overwhelmed by the amount of information and need it broken into smaller sections. The React API is intentionally small: `summary` is the clickable label, `open` controls the initial expanded state, and `children` is the content shown inside the disclosure panel. Prefer Details when only some users need the content and the disclosure should stay visually lighter.',
53
61
},
62
+
page: ()=>(
63
+
<>
64
+
<Title/>
65
+
<Description/>
66
+
67
+
<h2>How to use the React component</h2>
68
+
<p>
69
+
Use <code>Expander</code> when a larger block of information needs
70
+
to be broken into smaller sections without losing prominence. Pass
71
+
the clickable label through <code>summary</code> and the disclosure
72
+
content through <code>children</code>.
73
+
</p>
74
+
<p>
75
+
Set <code>open</code> when the section should be expanded on first
76
+
render. If the disclosure is lighter-weight supporting information,
0 commit comments