Skip to content

Commit

Permalink
TEMP: Doc examples
Browse files Browse the repository at this point in the history
  • Loading branch information
cchaos committed Oct 21, 2019
1 parent 7abe6c1 commit ade9de4
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions src-docs/src/views/code/code_block.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,36 @@ const htmlCode = `<!--I'm an example of HTML-->
</div>
`;

const jsCode = require('!!raw-loader!./code_block');
// const jsCode = require('!!raw-loader!./code_block');

export default () => (
<div>
<EuiCodeBlock language="html">{htmlCode}</EuiCodeBlock>

<EuiSpacer />

<EuiCodeBlock language="js" fontSize="m" paddingSize="none" isCopyable>
{htmlCode}
</EuiCodeBlock>
<EuiSpacer />

<EuiCodeBlock language="js" fontSize="m" paddingSize="s" isCopyable>
{htmlCode}
</EuiCodeBlock>
<EuiSpacer />

<EuiCodeBlock language="js" fontSize="m" paddingSize="m" isCopyable>
{htmlCode}
</EuiCodeBlock>
<EuiSpacer />

<EuiCodeBlock
language="js"
language="html"
fontSize="m"
paddingSize="m"
color="dark"
paddingSize="l"
overflowHeight={300}
isCopyable>
{jsCode}
{htmlCode}
</EuiCodeBlock>

<EuiSpacer />
Expand Down

0 comments on commit ade9de4

Please sign in to comment.