This is a shadcn based typography component. Used to keep the visual hierarchy of the page consistent, and keep the semantics flexible.
This component is built to provide semantic HTML structure while maintaining visual consistency.
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | string | "p" | The visual style and semantic element to render. |
| asChild | boolean | false | Change the default rendered element for the one passed as a child. |
| as | string | - | Change the default rendered element to the one passed as a string. |
| className | string | - | Additional CSS classes to apply to the element. |
The default variants are a starting point for building your own typography. They are designed to be flexible and customizable, while still maintaining a consistent visual hierarchy.
Standard heading hierarchies.
Variants for body text and content emphasis.
A modal dialog that interrupts the user with important content and expects a response.
The king, seeing how much happier his subjects were, realized the error of his ways and repealed the joke tax.
This is muted text, useful for secondary information or captions.
Specific variants for quotes, code, and labels.
"After all," he said, "everyone enjoys a good joke, so it's only fair that they should pay for the privilege."
Press ⌘K to open the command palette.
Standard ordered and unordered lists.