import CodeInline from '@techytools/ui/components/CodeInline'; import Block from '@techytools/ui/components/Block'; import CanvasContainer from '@techytools/ui/.storybook/components/CanvasContainer'; import useShowStorybookCode from '@techytools/ui/hooks/useShowStorybookCode'; export default (props) => { useShowStorybookCode(); return (

Use{' '} `} />{' '} to display anything without having to escape each special character.

You can also pass props.children, but then you'd have to escape special characters yourself.

You could also add variants to this component, to give it more functionality. For example,{' '} props.variant="transparentBg" , or{' '} props.variant="noBg" , or{' '} props.variant="redacted"

If your{' '} props.children {' '} contain un-escaped HTML elements, by default they will be styled semi-transparent{' '} opacity:0.5; . So, you can do cool tricks like display types or annotaions next to the main content.
For example, this component accepts{' '} props.children: React.ReactNode {' '} or{' '} props.code: string .

); }; export const code = `import CodeInline from '@techytools/ui/components/CodeInline';

Use \`} {...props} /> to display anything without having to escape each special character.

You can also pass props.children, but then you'd have to escape special characters yourself.

`;