Skip the navigation

Body


Usage

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

Body Sizes

SizeExample
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 Body 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 body text component loads quickly and does not affect the overall performance of the website.
Operable
Ready
The body 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 body 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 body text component is consistent with other headings on the sportsbook, ensuring a consistent user experience.