Skip to content
Cojeev UI

Typography

Typography

Provides text roles for headings, body copy, metadata, values, and identifiers.

React · copy into your project · light and dark themes

Try it

Loading preview…

Take it with you

Copy the example, API and usage notes for your editor or AI assistant.

Add to your project

Terminal
npx shadcn@latest add https://luv-jeri.github.io/cojeev-ui/r/typography.json

The command includes the component’s shared dependencies. Your project keeps editable source files.

Using typography

  • Choose a role such as Hero, SectionTitle, Body, Meta, or Identifier to establish a readable hierarchy.

  • Use as to select the semantic element while retaining the intended text treatment.

API

Compose the exported parts below. The prop types are read from the React source during the registry build.

Native element or underlying primitive props are inherited where declared, including accessible labels, event handlers and refs.

TypographyProps

PropTypeRequired
variant"default" | null | undefinedNo
size"default" | null | undefinedNo
asReact.ElementTypeNo

HeroProps

PropTypeRequired
variant"default" | null | undefinedNo
size"default" | null | undefinedNo
asReact.ElementTypeNo

DisplayProps

PropTypeRequired
variant"default" | null | undefinedNo
size"default" | null | undefinedNo
asReact.ElementTypeNo

SectionTitleProps

PropTypeRequired
variant"default" | null | undefinedNo
size"default" | null | undefinedNo
asReact.ElementTypeNo

TitleProps

PropTypeRequired
variant"default" | null | undefinedNo
size"default" | null | undefinedNo
asReact.ElementTypeNo

LeadProps

PropTypeRequired
variant"default" | null | undefinedNo
size"default" | null | undefinedNo
asReact.ElementTypeNo

BodyProps

PropTypeRequired
variant"default" | null | undefinedNo
size"default" | null | undefinedNo
asReact.ElementTypeNo

BodySecondaryProps

PropTypeRequired
variant"default" | null | undefinedNo
size"default" | null | undefinedNo
asReact.ElementTypeNo

ControlTextProps

PropTypeRequired
variant"default" | null | undefinedNo
size"default" | null | undefinedNo
asReact.ElementTypeNo

MetaProps

PropTypeRequired
variant"default" | null | undefinedNo
size"default" | null | undefinedNo
asReact.ElementTypeNo

CapsProps

PropTypeRequired
variant"default" | null | undefinedNo
size"default" | null | undefinedNo
asReact.ElementTypeNo

ValueProps

PropTypeRequired
variant"default" | null | undefinedNo
size"default" | null | undefinedNo
asReact.ElementTypeNo

IdentifierProps

PropTypeRequired
variant"default" | null | undefinedNo
size"default" | null | undefinedNo
asReact.ElementTypeNo

Accessibility

  • Choose heading levels from the document structure and use paragraphs, labels, and code elements according to their meaning.

States and appearance

rest

For conditional content, keep a MotionPresence boundary around keyed MotionSurface children. The shared entrance and exit states work with native primitives and respect your motion preference.

Try pointer and keyboard interaction, and switch the appearance control in the navigation to compare light and dark mode. Motion respects reduced motion preferences.