Visit APIToGo on LinkedIn
  • Documentation
  • Components
  • Themes
Components
General
    AlertCalloutBadgeCardIconsMarkdownTypography
Documentation
Form
Utility
powered by apitogo
General

Typography

The Typography component applies consistent prose styling to text content using Tailwind's typography plugin. It automatically formats headings, paragraphs, lists, and other text elements with appropriate spacing,

Import

Code
import { Typography } from "@lukoweb/apitogo/components";

font sizes, and styling that adapts to both light and dark themes.

This component is particularly useful when rendering markdown content or when you need consistent text formatting across your documentation.

Props

Code
type TypographyProps = { children: React.ReactNode; className?: string; };

Usage

Wrap any content that needs prose formatting with the Typography component. It will automatically style headings, paragraphs, lists, and other text elements:

Code
import { Typography } from "@lukoweb/apitogo/components"; <Typography> <h1>Hello World</h1> <p>This is a paragraph</p> <ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> </ul> </Typography>;

Example

Hello World

This is a paragraph

  • Item 1
  • Item 2
  • Item 3
Last modified on March 27, 2026
MarkdownCodeTabs
On this page
  • Import
  • Props
  • Usage
  • Example
React
TypeScript
React