Skip to content

Commit

Permalink
snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
anishagg17 committed Apr 3, 2020
1 parent 59d283d commit 367b9fd
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src-docs/src/views/accordion/accordion_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,12 @@ const accordionOpenSnippet = `<EuiAccordion
import AccordionCallback from './accordion_callback';
const accordionCallbackSource = require('!!raw-loader!./accordion_callback');
const accordionCallbackHtml = renderToHtml(AccordionCallback);
const accordionCallbackSnippet = `<EuiAccordion
const accordionForceCloseSnippet = `<EuiAccordion
id={accordionId}
buttonContent="Clickable title"
onToggle={isOpen => handleOnToggle(isOpen)}
>
forceClose={true}
buttonContent="Click me to toggle open / close">
<!-- Content to show when expanded -->
</EuiAccordion>
`;
</EuiAccordion>`;

import AccordionGrow from './accordion_grow';
const accordionGrowSource = require('!!raw-loader!./accordion_grow');
Expand Down Expand Up @@ -344,7 +342,7 @@ export const AccordionExample = {
state.
</p>
),
snippet: accordionCallbackSnippet,
snippet: accordionForceCloseSnippet,
demo: <AccordionForceClose />,
},
],
Expand Down

0 comments on commit 367b9fd

Please sign in to comment.