-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add snippets to accordion docs (#1831)
* adds snippets to accordion docs * id as var, add multiple item section with snippet * copy edits
- Loading branch information
Ryan Keairns
authored
Apr 15, 2019
1 parent
f277059
commit 768d4bf
Showing
3 changed files
with
119 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import React from 'react'; | ||
|
||
import { | ||
EuiAccordion, | ||
EuiText, | ||
EuiSpacer, | ||
} from '../../../../src/components'; | ||
|
||
|
||
export default () => ( | ||
<div> | ||
<EuiAccordion | ||
id="accordion1" | ||
buttonContent="An accordion with padding applied through props" | ||
paddingSize="l" | ||
> | ||
<EuiText> | ||
<p>The content inside can be of any height.</p> | ||
<p>The content inside can be of any height.</p> | ||
<p>The content inside can be of any height.</p> | ||
</EuiText> | ||
</EuiAccordion> | ||
|
||
<EuiSpacer /> | ||
|
||
<EuiAccordion | ||
id="accordion2" | ||
buttonContent="A second accordion with padding" | ||
paddingSize="l" | ||
> | ||
<EuiText> | ||
<p>The content inside can be of any height.</p> | ||
<p>The content inside can be of any height.</p> | ||
<p>The content inside can be of any height.</p> | ||
<p>The content inside can be of any height.</p> | ||
<p>The content inside can be of any height.</p> | ||
<p>The content inside can be of any height.</p> | ||
</EuiText> | ||
</EuiAccordion> | ||
</div> | ||
); |