Skip to content

Commit eb6290b

Browse files
committed
Minor changes in accordion doc
1 parent 2b7c17d commit eb6290b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

stories/Accordion.stories.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,15 @@ _NOTE: In controlled mode there is no animation transition when expanding or col
2828
2929
\`\`\`tsx
3030
function ControlledAccordion() {
31-
const [expanded,setExpanded] = useState(false)
31+
const [ expanded, setExpanded ] = useState(false)
3232
return (
33-
<Accordion label="Name of the Accordion" content="Content of the Accordion" onChange={(value,) => setExpanded(!value)} expanded={expanded}/>
33+
<Accordion
34+
label="Name of the Accordion"
35+
content="Content of the Accordion"
36+
onChange={(value,) => setExpanded(!value)}
37+
expanded={expanded}
38+
/>
3439
);
35-
3640
}
3741
\`\`\``,
3842
"disabledProps": ["lang"]

0 commit comments

Comments
 (0)