Skip to content

Typography

Typography components for text, titles, and paragraphs.

Text

Text types

Default textSecondary textSuccess textWarning textDanger textDisabled text

Ellipsis

Text ellipsis

This is a long piece of text that will be truncated with an ellipsis once it exceeds the container width, without wrapping.

Copyable

Copyable text

Copyable text content

Title

Heading levels

Heading 1Heading 2Heading 3

Paragraph

Paragraphs

Paragraph text 1Paragraph text 2

API

ComponentTagProps
Textoas-texttype, ellipsis, copyable
Titleoas-titlelevel (1-5), type, ellipsis
Paragraphoas-paragraphtype, ellipsis

type values: default / secondary / success / warning / danger / disabled.

oas-text

AttributeDescriptionTypeDefault
copyableShow a copy button that copies the text content on clickboolean
ellipsisSingle-line ellipsis when the text overflows its containerboolean
levelHeading level (1-5)string3
typeText type: default / secondary / success / warning / danger / disabledTextTypedefault
EventDescription
oas-copyCopy succeeded, detail: { text }
oas-copy-errorCopy failed, detail: { text }
NameDescription
default

oas-title

AttributeDescriptionTypeDefault
copyableShow a copy button that copies the text content on clickboolean
ellipsisSingle-line ellipsis when the text overflows its containerboolean
levelHeading level (1-5)string3
typeText type: default / secondary / success / warning / danger / disabledTextTypedefault
EventDescription
oas-copyCopy succeeded, detail: { text }
oas-copy-errorCopy failed, detail: { text }
NameDescription
default

oas-paragraph

AttributeDescriptionTypeDefault
copyableShow a copy button that copies the text content on clickboolean
ellipsisSingle-line ellipsis when the text overflows its containerboolean
levelHeading level (1-5)string3
typeText type: default / secondary / success / warning / danger / disabledTextTypedefault
EventDescription
oas-copyCopy succeeded, detail: { text }
oas-copy-errorCopy failed, detail: { text }
NameDescription
default