Typography

A component that enforces visual consistency in text content with semi-decoupled semantics and styles. Contextual defaults minimize design overhead.

Heading 1

Heading 2

Heading 3

Heading 4

This is paragraph text demonstrating the Typography component.

import { T } from '@kaynora/ui'

export default function () {
  return (
    <>
      <T type='h1'>Heading</T>
      <T>Paragraph text</T>
    </>
  )
}

The size prop determines the font size of the text.

Hello world!Hello world!Hello world!Hello world!Hello world!
import { T } from '@kaynora/ui'

export default function () {
  return (
    <T size='s'>Some small text</T>
  )
}
<Typography />
<T />
PropTypeDefault
type
'h1' | 'h2' | 'h3' | 'h4' | 'p' | 'span'
size
'xs' | 's' | 'm' | 'l' | 'xl'
weight
'300' | '400' | '500'
color
'primary' | 'dimmed' | 'inverted' | 'disabled' | 
'accent' | 'success' | 'error'
internal
{
  root: HTMLElementProps
}
undefined