Skip to Content
Documentation
Saas UI
Get Pro
Getting started
Components
Overview

Heading

Used to render semantic HTML heading elements.

The quick brown fox jumps over the lazy dog

Usage

import { Heading } from '@chakra-ui/react'
<Heading>I'm a Heading</Heading>

Examples

Sizes

Use the size prop to change the size of the heading component.

Heading (sm)

Heading (md)

Heading (lg)

Heading (xl)

Heading (2xl)

Heading (3xl)

Heading (4xl)

Heading (5xl)

Heading (6xl)

The quick brown fox
jumps over the lazy dog

The quick brown fox
jumps over the lazy dog

The quick brown fox
jumps over the lazy dog

The quick brown fox
jumps over the lazy dog

The quick brown fox
jumps over the lazy dog

The quick brown fox
jumps over the lazy dog

The quick brown fox
jumps over the lazy dog

The quick brown fox
jumps over the lazy dog

The quick brown fox
jumps over the lazy dog

Highlight

Compose the Heading component with the Highlight component to highlight text.

Build modern SaaS applications with Saas UI

Saas UI provides enterprise-ready components and patterns to help you build professional applications faster than ever.

As another element

Use the as prop to render the heading as another HTML element.

Level 1

Level 2

Level 3

Weights

Use the fontWeight prop to change the weight of the heading component.

Normal

Medium

Semibold

Bold

Composition

Use the Heading component to compose other components.

Modern payments for Stores

PayMe helps startups get paid by anyone, anywhere in the world

Props

PropDefaultType
colorPalette 'gray'
'gray' | 'zinc' | 'neutral' | 'stone' | 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'purple' | 'fuchsia' | 'pink' | 'rose' | 'presence' | 'status' | 'sidebar' | 'sidebar.accent' | 'accent' | 'slate'

The color palette of the component

size 'xl'
'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl'

The size of the component

Previous

Em

Next

Highlight