Heading

A component used for page titles and other headers.

In this guide, you'll learn how to use the Heading component.

This is an H1 heading

This is an H2 heading

This is an H3 heading

Was this example helpful?

Usage#

Code
import { Heading } from "@medusajs/ui"
Code
<Heading>A Title</Heading>

API Reference#

This component is based on the heading element (h1, h2, etc...) depeneding on the specified level and supports all of its props

PropTypeDefault
level
"h1"
|"h2"
|"h3"
"h1"
Was this guide helpful?
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break