We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b7c17d commit eb6290bCopy full SHA for eb6290b
stories/Accordion.stories.tsx
@@ -28,11 +28,15 @@ _NOTE: In controlled mode there is no animation transition when expanding or col
28
29
\`\`\`tsx
30
function ControlledAccordion() {
31
- const [expanded,setExpanded] = useState(false)
+ const [ expanded, setExpanded ] = useState(false)
32
return (
33
- <Accordion label="Name of the Accordion" content="Content of the Accordion" onChange={(value,) => setExpanded(!value)} expanded={expanded}/>
+ <Accordion
34
+ label="Name of the Accordion"
35
+ content="Content of the Accordion"
36
+ onChange={(value,) => setExpanded(!value)}
37
+ expanded={expanded}
38
+ />
39
);
-
40
}
41
\`\`\``,
42
"disabledProps": ["lang"]
0 commit comments