StarForge
Basic

Typography

Pre-styled typographic elements including headings, paragraphs, inline text, and links with consistent sizing and spacing.

Multi-Element Typography Set

A comprehensive set of pre-styled typographic components covering all common HTML text elements. Each element comes with consistent font weight, sizing, and responsive spacing out of the box. Use individual components like Typography1.H1, Typography1.P, Typography1.Strong, etc., to keep your markup semantic while maintaining a unified visual style.

Available Elements

ElementHTML TagDescription
Headerh1Large page header with extra spacing
H1H6h1h6Standard heading levels with responsive sizing
PpBody paragraph
SpanspanInline text wrapper
SmallsmallSmall/muted text
StrongstrongBold emphasis
EmemItalic emphasis
BlockquoteblockquoteQuoted block with left border
CiteciteCitation/source reference
QqInline quotation
AbbrabbrAbbreviation with dotted underline
DeldelStrikethrough (deleted text)
InsinsUnderlined (inserted text)
LinkaStyled anchor with hover underline

Props Reference

All elements share the same base props:

PropTypeDescriptionDefault
childrenReact.ReactNodeText contentrequired
classNamestringAdditional CSS classesundefined

Link also accepts:

PropTypeDescriptionDefault
hrefstringDestination URLrequired

Single-Component Typography

A unified typography component that renders different HTML elements based on a variant prop. Instead of importing multiple named components, use a single TypographyVariant1 with variant="h1", variant="p", etc. The as prop allows overriding the rendered tag when needed, and href is automatically passed for link variants.

Props Reference

PropTypeDescriptionDefault
variant'header' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'a' | 'small' | 'strong' | 'em' | 'blockquote' | 'cite' | 'q' | 'abbr' | 'del' | 'ins'Visual style and default HTML element'p'
asElementTypeOverride the rendered HTML tagundefined
childrenReact.ReactNodeText contentrequired
hrefstringURL for link variants (a, ins, etc.)undefined
titlestringTooltip text for abbr variantundefined
classNamestringAdditional CSS classesundefined

On this page

Built with ❤️ using React, Next.js, TypeScript, and Tailwind CSS