import React from 'react'; import RichText from '@/components/atoms/RichText'; import { RichTextProps } from '@/components/atoms/RichText/RichText'; import { Meta, Story } from '@storybook/react'; export default { title: "Components/RichText", component: RichText, } as Meta; const Template: Story = ({ ...args }) => ( {`

Example mixed content with bold text and linked content.

`}
); // More on args: https://storybook.js.org/docs/react/writing-stories/args export const Simple = Template.bind({}); const Template2: Story = ({ ...args }) => ( {`

H1

H2

H3

H3

H4

H5
H6

Paragraph tag with linked content.

  • UL List item 1
  • UL List item 2
    • UL List item 1
    • UL List item 2
    • UL List item 3
  • UL List item 3
  1. OL List item 1
  2. OL List item 2
    1. OL List item 1
    2. OL List item 2
    3. OL List item 3
  3. OL List item 3
`}
); export const OtherExample = Template2.bind({}); const Template3: Story = ({ ...args }) => ( {`This heading has Bold Content and Italics`} ); export const HeadingTag = Template3.bind({}); const Template4: Story = ({ ...args }) => ( {`This heading with HTML attributes`} ); export const HTMLAttributes = Template4.bind({}); const Template5: Story = ({ ...args }) => ( {`

2 capacetes, da marca SPY, cor preto, tamanho L. NOTA: acresce IVA. Teste

`}
); export const PreventJSInjection = Template5.bind({});