import React from 'react' import { type Meta, type StoryObj } from '@storybook/react' import { Text } from '~components/Text' import { RichTextContent } from '../index' const meta = { title: 'Components/RichTextEditor/RichTextContent', component: RichTextContent, args: { content: [ { type: 'paragraph', content: [ { type: 'text', text: 'User text goes here', }, ], }, ], }, argTypes: { content: { control: false }, }, } satisfies Meta export default meta type Story = StoryObj export const Playground: Story = { parameters: { chromatic: { disable: false }, }, } export const ReadOnly: Story = { parameters: { chromatic: { disable: false }, }, args: { content: [ { type: 'paragraph', content: [ { type: 'text', text: 'User text goes here', }, ], }, ], }, render: (args) => ( <> {/* Note that since RichTextContent is not content editable, it is essentially just a div. This is why we haven't used the Label component */} Read only state
), }