Skip to main content
Version: 1.0.3

Typography

Overview

A single Typography component that handles all your text needs with consistent sizing, weights, colors, and spacing through simple props.

Installation

ignix add component typography

Preview

Heading 1 - Page Title

Heading 2 - Section

Heading 3 - Subsection

Heading 4 - Minor Heading

Heading 5 - Small Heading
Heading 6 - Smallest Heading

Usage

Basic Usage

Main Title

Section Heading

Large body text perfect for introductory paragraphs or lead content.

This is the main content of your page. It provides detailed information and supports the main points.

Small body text for secondary information, notes, or less important content.

Additional information label

Colors

Success message

Error message

Warning message

Font Weights

Light weight

Normal weight

Bold weight

Text Alignment

Left aligned text

Centered text

Right aligned text

Text Decorations

Overlined text

Underlined text

Strikethrough text

Text Transforms

Uppercase text

Lowercase text

Capitalized text

Interactive Features

Interactive Features

Hover Effects

Hover to underline this text

Hover to change color

Hover to scale

Special Features

This text is highlighted with mark

This is a very long text that will be truncated with an ellipsis when it exceeds the container width

This looks like a clickable link

Props

PropTypeDefaultDescription
variant'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body-large' | 'body' | 'body-small' | 'lead' | 'large' | 'small' | 'label' | 'caption' | 'muted' | 'link' | 'code' | 'blockquote' | 'list''body'The typography variant/style
color'default' | 'primary' | 'secondary' | 'muted' | 'error' | 'success' | 'warning' | 'inherit''default'Text color variant
weight'light' | 'normal' | 'medium' | 'semibold' | 'bold''normal'Font weight
align'left' | 'center' | 'right' | 'justify''left'Text alignment
decoration'none' | 'underline' | 'line-through' | 'overline''none'Text decoration
transform'normal' | 'uppercase' | 'lowercase' | 'capitalize''normal'Text transformation
hover'none' | 'underline' | 'color' | 'scale''none'Hover effect style
markbooleanfalseWhether to highlight text with mark tag
truncatebooleanfalseWhether to truncate text with ellipsis
asChildbooleanfalseMerge props onto child element
asReact.ElementType-Custom HTML element to render
classNamestring-Additional CSS classes to apply