Castle logo

CASTLE UI

Search

K

Text is a general purpose typography component. Castle UI also exports semantic components for headings.

Typography

import { Text, H1, H2, H3, H4, Title } from '@passfort/castle'

Copy

Titles

Title XXL

Title XL

Headings

Heading 1

Heading 2

Heading 3

Heading 4

Content

Body text

Small

Data

Copy

live example

Bold

Copy

live example

Lists

Copy

live example

Overflow

If contents of the Text are overflowing, you can set textOverflow as tooltip, to show the text truncated with ellipsis, and show full contents in a popover tooltip.

Copy

live example

Accessibility

using the as prop allows visual styling to differ from semantic structure, which can be important for screen readers.

Copy

live example

Contents