import {Prose} from '@primer/react-brand'
Examples
The Prose
component renders native HTML elements with Primer Brand styling. Prose
doesn’t sanitize the input data. We recommend sanitizing the data before passing it into Prose
.
Prose
currently supports styling the following HTML elements: <h1>
, <h2>
, <h3>
, <h4>
, <h5>
, <h6>
, <p>
, <strong>
, <em>
, <a>
, <ul>
, <ol>
, <li>
, <img>
, <blockquote>
, <code>
, <figure>
, <figcaption>
and <div>
.
Default
Loading
Full Width
Loading
Component props
Prose
Name | Type | Default | Required | Description |
---|---|---|---|---|
html | string | true | Content to be displayed within the Prose component | |
enableFullWidth | boolean | false | A toggle to remove the default max-width | |
className | string | Sets a custom class on the root element |