# RichText The `RichText` component renders a metafield of type `rich_text_field`. By default the rendered output uses semantic HTML tags. Customize how nodes are rendered with the `components` prop. ```jsx import {RichText} from '@shopify/hydrogen'; export function MainRichText({metaFieldData}) { return ( {node.children}

; }, }} /> ); } ``` ```tsx import {RichText} from '@shopify/hydrogen'; export function MainRichText({metaFieldData}: {metaFieldData: string}) { return ( {node.children}

; }, }} /> ); } ``` ## Props ### RichTextPropsForDocs ### as value: `ComponentGeneric` An HTML tag or React Component to be rendered as the base element wrapper. The default is `div`. ### components value: `CustomComponents` - CustomComponents: { /** The root node of the rich text. Defaults to `
` */ root?: typeof Root; /** Customize the headings. Each heading has a `level` property from 1-6. Defaults to `

` to `

` */ heading?: typeof Heading; /** Customize paragraphs. Defaults to `

` */ paragraph?: typeof Paragraph; /** Customize how text nodes. They can either be bold or italic. Defaults to ``, `` or text. */ text?: typeof Text; /** Customize links. Defaults to a React Router `` component in Hydrogen and a `` in Hydrogen React. */ link?: typeof RichTextLink; /** Customize lists. They can be either ordered or unordered. Defaults to `

    ` or `