Typography
Text styling components.
Preview
A preview of the Typography component with interactive controls.
Interactive
Installation
Add the Typography component to your project.
ng g @ng-cn/core:c typographyUsage
Import and use the Typography component in your Angular application.
<div class="space-y-6">
<TypographyH1>The Joke Tax Chronicles</TypographyH1>
<TypographyLead>
Once upon a time, in a far-off land, there was a very lazy king.
</TypographyLead>
<TypographyH2>The King's Plan</TypographyH2>
<TypographyP>
The king thought it was a brilliant idea to tax jokes.
<TypographyInlineCode>const tax = 0.1</TypographyInlineCode>
</TypographyP>
<TypographyBlockquote>
"After all," he said, "everyone enjoys a good joke, so it's only fair."
</TypographyBlockquote>
<TypographyH3>The Consequences</TypographyH3>
<TypographySmall>Note: This is a fictional story.</TypographySmall>
<TypographyMuted>Last updated: 3 days ago</TypographyMuted>
</div>Examples
Explore different variations and use cases for the Typography component.
Basic
Interactive
API Reference
Props | Prop | Type | Default | Description |
|---|---|---|---|
class | string | — | Additional CSS classes. |