UNPKG

grommet

Version:

focus on the essential experience

29 lines 1.43 kB
import React from 'react'; import styled from 'styled-components'; import { Box, Markdown } from 'grommet'; import { styledComponentsConfig } from '../../../utils/styles'; var CONTENT = "\n # Out of Breath\n\n You know, sometimes in life it seems like there's no way out. Like\n a sheep trapped in a maze designed by wolves. See all the\n options [here](https://github.com/probablyup/markdown-to-jsx/)\n\n [reference](#)\n\n```\nimport { Grommet } from 'grommet';\n```\n\n > i carry your heart with me\n\n ![alt text](//v2.grommet.io/assets/IMG_4245.jpg \"Markdown Image\")\n\n Markdown | Less | Pretty\n --- | --- | ---\n *Still* | `renders` | **nicely**\n 1 | 2 | 3\n"; var StyledPre = styled.pre.withConfig(styledComponentsConfig).withConfig({ displayName: "Overridestories__StyledPre", componentId: "sc-j3ni89-0" })(["background-color:#ffca58;"]); export var ComponentOverrideMarkdown = function ComponentOverrideMarkdown() { return ( /*#__PURE__*/ // Uncomment <Grommet> lines when using outside of storybook // <Grommet theme={...}> React.createElement(Box, { align: "center", pad: "large" }, /*#__PURE__*/React.createElement(Markdown, { components: { pre: StyledPre } }, CONTENT)) // </Grommet> ); }; ComponentOverrideMarkdown.storyName = 'Component override markdown'; export default { title: 'Type/Markdown/Component override markdown' };