Skip to content
FoundationsInteractive playground

Typography

Typography with a shared visual language.

Preparing the playground…
Text and Markdown example
Typography · Example
1<div style={{ display: "grid", gap: 16, width: "100%", maxWidth: 360 }}> 2 <TypographyH2>Ideas take shape.</TypographyH2><TypographyP>A consistent foundation for what you are building.</TypographyP><TypographyMuted>Small details matter too.</TypographyMuted> 3</div>
Read documentation in Markdown

How to use it

Choose heading levels based on document structure. Keep one main h1 and use paragraphs for body content.

Import

React / Next.js
1import { TypographyH1, TypographyH2, TypographyH3, TypographyH4, TypographyP, TypographyLead, TypographyLarge, TypographySmall, TypographyMuted, TypographyBlockquote, TypographyList, TypographyInlineCode } from "@kivora/nextjs";

Interactive examples run inside a component with "use client". The playground's Copy button includes the imports needed for the current example.

API reference 0.2.0

Types from the installed published version, including component properties and common HTML attributes. “Optional” does not imply a default value; omitting a property lets the component decide.

PropertyTypeDescription
aria-labelstringAccessible name of the control.
childrenReactNodeContent or child elements of the component.
classNamestringAdditional CSS classes to customize the element.
defaultCheckedbooleanInitial selection of the control.
defaultValuestring | number | readonly string[]Initial value when the component manages its own state.
idstringElement identifier; associates labels and descriptions.
onChangeChangeEventHandler<HTMLHeadingElement, Element>Change event. Check the type: some controls return an object, others a DOM event.
onClickMouseEventHandler<HTMLHeadingElement>Action performed when the element is activated.
onSubmitSubmitEventHandler<HTMLHeadingElement>Form submission event.
roleAriaRoleSemantic role of the element. Keep the default role unless a change is justified.
styleCSSPropertiesReact inline styles.
tabIndexnumberKeyboard focus order and availability.
titlestringTitle or supplementary information.

Subcomponents and composition

Review each component's properties and published declaration. Native and accessibility attributes are inherited from the element specified by its type.

TypographyH113 properties
TypographyH1 · TypeScript
1TypographyH1: React.ForwardRefExoticComponent<TypographyProps<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>
TypographyH213 properties
PropertyTypeDescription
aria-labelstringAccessible name of the control.
childrenReactNodeContent or child elements of the component.
classNamestringAdditional CSS classes to customize the element.
defaultCheckedbooleanInitial selection of the control.
defaultValuestring | number | readonly string[]Initial value when the component manages its own state.
idstringElement identifier; associates labels and descriptions.
onChangeChangeEventHandler<HTMLHeadingElement, Element>Change event. Check the type: some controls return an object, others a DOM event.
onClickMouseEventHandler<HTMLHeadingElement>Action performed when the element is activated.
onSubmitSubmitEventHandler<HTMLHeadingElement>Form submission event.
roleAriaRoleSemantic role of the element. Keep the default role unless a change is justified.
styleCSSPropertiesReact inline styles.
tabIndexnumberKeyboard focus order and availability.
titlestringTitle or supplementary information.
TypographyH2 · TypeScript
1TypographyH2: React.ForwardRefExoticComponent<TypographyProps<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>
TypographyH313 properties
PropertyTypeDescription
aria-labelstringAccessible name of the control.
childrenReactNodeContent or child elements of the component.
classNamestringAdditional CSS classes to customize the element.
defaultCheckedbooleanInitial selection of the control.
defaultValuestring | number | readonly string[]Initial value when the component manages its own state.
idstringElement identifier; associates labels and descriptions.
onChangeChangeEventHandler<HTMLHeadingElement, Element>Change event. Check the type: some controls return an object, others a DOM event.
onClickMouseEventHandler<HTMLHeadingElement>Action performed when the element is activated.
onSubmitSubmitEventHandler<HTMLHeadingElement>Form submission event.
roleAriaRoleSemantic role of the element. Keep the default role unless a change is justified.
styleCSSPropertiesReact inline styles.
tabIndexnumberKeyboard focus order and availability.
titlestringTitle or supplementary information.
TypographyH3 · TypeScript
1TypographyH3: React.ForwardRefExoticComponent<TypographyProps<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>
TypographyH413 properties
PropertyTypeDescription
aria-labelstringAccessible name of the control.
childrenReactNodeContent or child elements of the component.
classNamestringAdditional CSS classes to customize the element.
defaultCheckedbooleanInitial selection of the control.
defaultValuestring | number | readonly string[]Initial value when the component manages its own state.
idstringElement identifier; associates labels and descriptions.
onChangeChangeEventHandler<HTMLHeadingElement, Element>Change event. Check the type: some controls return an object, others a DOM event.
onClickMouseEventHandler<HTMLHeadingElement>Action performed when the element is activated.
onSubmitSubmitEventHandler<HTMLHeadingElement>Form submission event.
roleAriaRoleSemantic role of the element. Keep the default role unless a change is justified.
styleCSSPropertiesReact inline styles.
tabIndexnumberKeyboard focus order and availability.
titlestringTitle or supplementary information.
TypographyH4 · TypeScript
1TypographyH4: React.ForwardRefExoticComponent<TypographyProps<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>
TypographyP13 properties
PropertyTypeDescription
aria-labelstringAccessible name of the control.
childrenReactNodeContent or child elements of the component.
classNamestringAdditional CSS classes to customize the element.
defaultCheckedbooleanInitial selection of the control.
defaultValuestring | number | readonly string[]Initial value when the component manages its own state.
idstringElement identifier; associates labels and descriptions.
onChangeChangeEventHandler<HTMLParagraphElement, Element>Change event. Check the type: some controls return an object, others a DOM event.
onClickMouseEventHandler<HTMLParagraphElement>Action performed when the element is activated.
onSubmitSubmitEventHandler<HTMLParagraphElement>Form submission event.
roleAriaRoleSemantic role of the element. Keep the default role unless a change is justified.
styleCSSPropertiesReact inline styles.
tabIndexnumberKeyboard focus order and availability.
titlestringTitle or supplementary information.
TypographyP · TypeScript
1TypographyP: React.ForwardRefExoticComponent<TypographyProps<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>
TypographyLead13 properties
PropertyTypeDescription
aria-labelstringAccessible name of the control.
childrenReactNodeContent or child elements of the component.
classNamestringAdditional CSS classes to customize the element.
defaultCheckedbooleanInitial selection of the control.
defaultValuestring | number | readonly string[]Initial value when the component manages its own state.
idstringElement identifier; associates labels and descriptions.
onChangeChangeEventHandler<HTMLParagraphElement, Element>Change event. Check the type: some controls return an object, others a DOM event.
onClickMouseEventHandler<HTMLParagraphElement>Action performed when the element is activated.
onSubmitSubmitEventHandler<HTMLParagraphElement>Form submission event.
roleAriaRoleSemantic role of the element. Keep the default role unless a change is justified.
styleCSSPropertiesReact inline styles.
tabIndexnumberKeyboard focus order and availability.
titlestringTitle or supplementary information.
TypographyLead · TypeScript
1TypographyLead: React.ForwardRefExoticComponent<TypographyProps<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>
TypographyLarge13 properties
PropertyTypeDescription
aria-labelstringAccessible name of the control.
childrenReactNodeContent or child elements of the component.
classNamestringAdditional CSS classes to customize the element.
defaultCheckedbooleanInitial selection of the control.
defaultValuestring | number | readonly string[]Initial value when the component manages its own state.
idstringElement identifier; associates labels and descriptions.
onChangeChangeEventHandler<HTMLDivElement, Element>Change event. Check the type: some controls return an object, others a DOM event.
onClickMouseEventHandler<HTMLDivElement>Action performed when the element is activated.
onSubmitSubmitEventHandler<HTMLDivElement>Form submission event.
roleAriaRoleSemantic role of the element. Keep the default role unless a change is justified.
styleCSSPropertiesReact inline styles.
tabIndexnumberKeyboard focus order and availability.
titlestringTitle or supplementary information.
TypographyLarge · TypeScript
1TypographyLarge: React.ForwardRefExoticComponent<TypographyProps<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>
TypographySmall13 properties
PropertyTypeDescription
aria-labelstringAccessible name of the control.
childrenReactNodeContent or child elements of the component.
classNamestringAdditional CSS classes to customize the element.
defaultCheckedbooleanInitial selection of the control.
defaultValuestring | number | readonly string[]Initial value when the component manages its own state.
idstringElement identifier; associates labels and descriptions.
onChangeChangeEventHandler<HTMLElement, Element>Change event. Check the type: some controls return an object, others a DOM event.
onClickMouseEventHandler<HTMLElement>Action performed when the element is activated.
onSubmitSubmitEventHandler<HTMLElement>Form submission event.
roleAriaRoleSemantic role of the element. Keep the default role unless a change is justified.
styleCSSPropertiesReact inline styles.
tabIndexnumberKeyboard focus order and availability.
titlestringTitle or supplementary information.
TypographySmall · TypeScript
1TypographySmall: React.ForwardRefExoticComponent<TypographyProps<HTMLElement> & React.RefAttributes<HTMLElement>>
TypographyMuted13 properties
PropertyTypeDescription
aria-labelstringAccessible name of the control.
childrenReactNodeContent or child elements of the component.
classNamestringAdditional CSS classes to customize the element.
defaultCheckedbooleanInitial selection of the control.
defaultValuestring | number | readonly string[]Initial value when the component manages its own state.
idstringElement identifier; associates labels and descriptions.
onChangeChangeEventHandler<HTMLParagraphElement, Element>Change event. Check the type: some controls return an object, others a DOM event.
onClickMouseEventHandler<HTMLParagraphElement>Action performed when the element is activated.
onSubmitSubmitEventHandler<HTMLParagraphElement>Form submission event.
roleAriaRoleSemantic role of the element. Keep the default role unless a change is justified.
styleCSSPropertiesReact inline styles.
tabIndexnumberKeyboard focus order and availability.
titlestringTitle or supplementary information.
TypographyMuted · TypeScript
1TypographyMuted: React.ForwardRefExoticComponent<TypographyProps<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>
TypographyBlockquote13 properties
PropertyTypeDescription
aria-labelstringAccessible name of the control.
childrenReactNodeContent or child elements of the component.
classNamestringAdditional CSS classes to customize the element.
defaultCheckedbooleanInitial selection of the control.
defaultValuestring | number | readonly string[]Initial value when the component manages its own state.
idstringElement identifier; associates labels and descriptions.
onChangeChangeEventHandler<HTMLQuoteElement, Element>Change event. Check the type: some controls return an object, others a DOM event.
onClickMouseEventHandler<HTMLQuoteElement>Action performed when the element is activated.
onSubmitSubmitEventHandler<HTMLQuoteElement>Form submission event.
roleAriaRoleSemantic role of the element. Keep the default role unless a change is justified.
styleCSSPropertiesReact inline styles.
tabIndexnumberKeyboard focus order and availability.
titlestringTitle or supplementary information.
TypographyBlockquote · TypeScript
1TypographyBlockquote: React.ForwardRefExoticComponent<TypographyProps<HTMLQuoteElement> & React.RefAttributes<HTMLQuoteElement>>
TypographyList13 properties
PropertyTypeDescription
aria-labelstringAccessible name of the control.
childrenReactNodeContent or child elements of the component.
classNamestringAdditional CSS classes to customize the element.
defaultCheckedbooleanInitial selection of the control.
defaultValuestring | number | readonly string[]Initial value when the component manages its own state.
idstringElement identifier; associates labels and descriptions.
onChangeChangeEventHandler<HTMLUListElement, Element>Change event. Check the type: some controls return an object, others a DOM event.
onClickMouseEventHandler<HTMLUListElement>Action performed when the element is activated.
onSubmitSubmitEventHandler<HTMLUListElement>Form submission event.
roleAriaRoleSemantic role of the element. Keep the default role unless a change is justified.
styleCSSPropertiesReact inline styles.
tabIndexnumberKeyboard focus order and availability.
titlestringTitle or supplementary information.
TypographyList · TypeScript
1TypographyList: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLUListElement> & React.RefAttributes<HTMLUListElement>>
TypographyInlineCode13 properties
PropertyTypeDescription
aria-labelstringAccessible name of the control.
childrenReactNodeContent or child elements of the component.
classNamestringAdditional CSS classes to customize the element.
defaultCheckedbooleanInitial selection of the control.
defaultValuestring | number | readonly string[]Initial value when the component manages its own state.
idstringElement identifier; associates labels and descriptions.
onChangeChangeEventHandler<HTMLElement, Element>Change event. Check the type: some controls return an object, others a DOM event.
onClickMouseEventHandler<HTMLElement>Action performed when the element is activated.
onSubmitSubmitEventHandler<HTMLElement>Form submission event.
roleAriaRoleSemantic role of the element. Keep the default role unless a change is justified.
styleCSSPropertiesReact inline styles.
tabIndexnumberKeyboard focus order and availability.
titlestringTitle or supplementary information.
TypographyInlineCode · TypeScript
1TypographyInlineCode: React.ForwardRefExoticComponent<TypographyProps<HTMLElement> & React.RefAttributes<HTMLElement>>
API generated from @kivora/nextjs 0.2.0View package