Build faster with Premium Chakra UI Components 💎

Learn more
Skip to Content
DocsPlaygroundGuidesBlog
Sponsor

Prose

Used to style remote HTML content

Title Heading 1

Title Heading 2

Title Heading 3

Title Heading 4

Title Heading 4 testing

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi at dolor nec ex rutrum semper. Praesent ultricies purus eget lectus tristique egestas ac in lacus. Nulla eleifend lorem risus, sit amet dictum nisi gravida eget. Suspendisse odio sem, scelerisque congue luctus nec, scelerisque ultrices orci. Praesent tincidunt, risus ut commodo cursus, ligula orci tristique justo, vitae sollicitudin lacus risus dictum orci. Press Ctrl + C to copy

Vivamus vel enim at lorem ultricies faucibus. Cras vitae ipsum ut quam varius dignissim a ac tellus. Aliquam maximus mauris eget tincidunt interdum. Fusce vitae massa non risus congue tincidunt. Pellentesque maximus elit quis eros lobortis dictum.


Fusce placerat ipsum vel sollicitudin imperdiet. Morbi vulputate non diam at consequat. Donec vitae sem eu arcu auctor scelerisque vel in turpis. Pellentesque dapibus justo dui, quis egestas sapien porttitor in.

Setup

If you don't already have the snippet, run the following command to add the prose snippet

npx @chakra-ui/cli snippet add prose

Usage

import { Prose } from "@/components/ui/prose"
<Prose>
  <div dangerouslySetInnerHTML={{ __html: "..." }} />
</Prose>

Examples

Sizes

Use the size prop to change the size of the Prose component

size: md

Title Heading 1

Title Heading 2

Title Heading 3

Title Heading 4

Title Heading 4 testing

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi at dolor nec ex rutrum semper. Praesent ultricies purus eget lectus tristique egestas ac in lacus. Nulla eleifend lorem risus, sit amet dictum nisi gravida eget. Suspendisse odio sem, scelerisque congue luctus nec, scelerisque ultrices orci. Praesent tincidunt, risus ut commodo cursus, ligula orci tristique justo, vitae sollicitudin lacus risus dictum orci. Press Ctrl +C to copy

size: lg

Title Heading 1

Title Heading 2

Title Heading 3

Title Heading 4

Title Heading 4 testing

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi at dolor nec ex rutrum semper. Praesent ultricies purus eget lectus tristique egestas ac in lacus. Nulla eleifend lorem risus, sit amet dictum nisi gravida eget. Suspendisse odio sem, scelerisque congue luctus nec, scelerisque ultrices orci. Praesent tincidunt, risus ut commodo cursus, ligula orci tristique justo, vitae sollicitudin lacus risus dictum orci. Press Ctrl +C to copy

Blockquote

Blockquote elements are styled to match the design language of the Blockquote component.

Blockquotes

This is a good looking blockquote!

And it can span into multiple lines:

Fusce placerat ipsum vel sollicitudin imperdiet. Morbi vulputate non diam at consequat. Donec vitae sem eu arcu auctor scelerisque vel in turpis. Pellentesque dapibus justo dui, quis egestas sapien porttitor in.

There's also strong, b, em support as well! But, let's display some code!

List

List elements are styled to match the design language of the List component.

Lists

Let's look at some unordered lists. Things to buy:

  • Milk
  • Eggs
  • Bread
  • Chakra UI Pro license

And some ordered lists. Things to do:

  1. Pay the bills
  2. Walk the dog
  3. Take out trash

React Markdown

Here's an example of using the react-markdown library to render markdown content.

Heading

Based on your Chakra package. So click here to confirm your plan.

  • first item
  • second item
  • second item
  • second item

title

Table

The table elements are styled to match the design language of the Table component.

Tables

Name Role GitHub Profile
Segun Creator segunadebayo
Chris Ark Wizard grizzlycodes
Abraham Trouble maker anubra266
Esther Developer Advocate estheragbaje

Previous

Mark

Next

Text