Skip the navigation

Heading


Usage

import { Heading } from "@caesars-ui/core";

Heading Sizes

SizeExample
2xlBe a Caesar!
2xl-boldBe a Caesar!
xlBe a Caesar!
xl-boldBe a Caesar!
lgBe a Caesar!
lg-boldBe a Caesar!
mdBe a Caesar!
md-boldBe a Caesar!
smBe a Caesar!
sm-boldBe a Caesar!
xsBe a Caesar!
xs-boldBe a Caesar!

The Heading component has a default setting of md. It also has a default setting for fg-default as the color. If you'd like to change the text color, you can easily do so by providing a tailwind class in the color prop, such as tw-text-fg-inverse. Alternatively, you can also just set className like any other React component and apply styles via your own classes. The default rendered HTML element is a p tag, be careful when rendering as other elements where there might be element level styles applied to the text.

Properties

* indicates required.

Accessibility

Principle

Status

Description

Percievable
Ready
The Heading text component loads quickly and does not affect the overall performance of the website.
Operable
Ready
The Heading text component is easy to navigate and interacts well with other elements on the page. The text size, color, and style are easy to read and do not cause strain on the eyes.
Understandable
Ready
The Heading text component is clear, concise, and informative. It conveys the purpose of the page or section in a way that is easy for users to understand.
Robust
Ready
The Heading text component is consistent with other headings on the sportsbook, ensuring a consistent user experience.