Typography

The Typography component provides a set of styled text utilities, enabling consistent text displays across your application.

Usage

Header

<Typography.Header variant="h2" size={'6'}>
This is a Header
</Typography.Header>

Text

<Typography.Text size={'3'}>This is a Text</Typography.Text>

Link

<Typography.Link href="https://www.example.com">Click me</Typography.Link>

Code

<Typography.Code>This is code</Typography.Code>

Gradient

<Typography.Gradient>This is Gradient</Typography.Gradient>

API

Props

Header

PropTypeDefaultRequired
classNamestring--
styleCSSProperties--
childrenReactNode--
variant'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'--
MarginPropsToken<MarginProps>--
colorThemeAccentColor--
highContrastboolean--

Text

PropTypeDefaultRequired
classNamestring--
styleCSSProperties--
childrenReactNode--
variant'p' | 'label' | 'div' | 'span'--
MarginPropsToken<MarginProps>--
colorThemeAccentColor--
highContrastboolean--

Link

PropTypeDefaultRequired
classNamestring--
styleCSSProperties--
childrenReactNode--
hrefstring--
colorThemeAccentColor--
highContrastboolean--

Code

PropTypeDefaultRequired
classNamestring--
styleCSSProperties--
childrenReactNode--
MarginPropsToken<MarginProps>--
colorThemeAccentColor--
radiusThemeRadius--
highContrastboolean--

Gradient

PropTypeDefaultRequired
classNamestring--
styleCSSProperties--
childrenReactNode--
gradientColor[string, string]['#915eff', '#9eb2ff']Yes
MarginPropsToken<MarginProps>--
Icon Button
Previous
Anchor
Next