Typography
Typography components for text, titles, and paragraphs.
Text
Text types
Decorations
Custom mark color (mark + CSS variable)
Font weight (weight)
Numeric (tabular-nums)
Text alignment (align)
Text depth
Custom tag
Ellipsis
Text ellipsis
Multiline ellipsis (line-clamp)
Ellipsis with suffix (ellipsis-suffix)
Copyable
Copyable text
Custom copy text (copy-text)
Actions
Actions position
Title
Heading levels
Paragraph
Paragraphs
API
| Component | Tag | Props |
|---|---|---|
| Text | oas-text | type, ellipsis, copyable |
| Title | oas-title | level (1-5), type, ellipsis |
| Paragraph | oas-paragraph | type, ellipsis |
type values: default / secondary / success / warning / danger / disabled.
oas-text
| Attribute | Description | Type | Default |
|---|---|---|---|
actions-position | Action bar position: start (before the text) / end (default, after the text); pair with slot="actions" | string | end |
align | Text alignment: start/center/end/justify | AlignType | — |
code | Inline code style (monospace + light background) | boolean | — |
copy-text | Custom content to copy (defaults to the current text) | string | — |
copyable | Show a copy button that copies the text content on click | boolean | — |
delete | Strikethrough (<del> semantics) | boolean | — |
depth | Text softening tier: 1 / 2 / 3 (progressively lighter); only effective with type="default" | string | — |
ellipsis | Single-line ellipsis when the text overflows its container | boolean | — |
ellipsis-suffix | Suffix preserved when ellipsized (e.g. an expand link); works with ellipsis / line-clamp | string | — |
italic | Italic (<em> semantics) | — | — |
level | Heading level (1-5) | string | 3 |
line-clamp | Number of lines before multi-line ellipsis (positive integer); combinable with ellipsis-suffix | string | — |
mark | Highlighted mark (light yellow background, <mark> semantics) | — | — |
numeric | Tabular figures (font-variant-numeric: tabular-nums) for aligned numeric columns in tables/stats | — | — |
strong | Bold (font-weight 600, <strong> semantics) | — | — |
tag | Render tag: replaces the default element (e.g. sub / sup / ins / em / strong) | string | — |
type | Text type: default / secondary / success / warning / danger / disabled | TextType | default |
underline | Underline | — | — |
weight | Font weight: regular/medium/semibold/bold (compatible with the strong boolean) | WeightType | — |
| Event | Description |
|---|---|
oas-copy | Copy succeeded, detail: { text } |
oas-copy-error | Copy failed, detail: { text } |
| Name | Description |
|---|---|
| default | — |
actions | Action slot (copy/edit buttons etc.); position determined by actions-position |
oas-title
| Attribute | Description | Type | Default |
|---|---|---|---|
actions-position | Action bar position: start (before the text) / end (default, after the text); pair with slot="actions" | string | end |
align | — | AlignType | — |
code | Inline code style (monospace + light background) | boolean | — |
copy-text | Custom content to copy (defaults to the current text) | string | — |
copyable | Show a copy button that copies the text content on click | boolean | — |
delete | Strikethrough (<del> semantics) | boolean | — |
depth | Text softening tier: 1 / 2 / 3 (progressively lighter); only effective with type="default" | string | — |
ellipsis | Single-line ellipsis when the text overflows its container | boolean | — |
ellipsis-suffix | Suffix preserved when ellipsized (e.g. an expand link); works with ellipsis / line-clamp | string | — |
italic | Italic (<em> semantics) | — | — |
level | Heading level (1-5) | string | 3 |
line-clamp | Number of lines before multi-line ellipsis (positive integer); combinable with ellipsis-suffix | string | — |
mark | Highlighted mark (light yellow background, <mark> semantics) | — | — |
numeric | — | — | — |
strong | Bold (font-weight 600, <strong> semantics) | — | — |
tag | Render tag: replaces the default element (e.g. sub / sup / ins / em / strong) | string | — |
type | Text type: default / secondary / success / warning / danger / disabled | TextType | default |
underline | Underline | — | — |
weight | — | WeightType | — |
| Event | Description |
|---|---|
oas-copy | Copy succeeded, detail: { text } |
oas-copy-error | Copy failed, detail: { text } |
| Name | Description |
|---|---|
| default | — |
actions | Action slot (copy/edit buttons etc.); position determined by actions-position |
oas-paragraph
| Attribute | Description | Type | Default |
|---|---|---|---|
actions-position | Action bar position: start (before the text) / end (default, after the text); pair with slot="actions" | string | end |
align | — | AlignType | — |
code | Inline code style (monospace + light background) | boolean | — |
copy-text | Custom content to copy (defaults to the current text) | string | — |
copyable | Show a copy button that copies the text content on click | boolean | — |
delete | Strikethrough (<del> semantics) | boolean | — |
depth | Text softening tier: 1 / 2 / 3 (progressively lighter); only effective with type="default" | string | — |
ellipsis | Single-line ellipsis when the text overflows its container | boolean | — |
ellipsis-suffix | Suffix preserved when ellipsized (e.g. an expand link); works with ellipsis / line-clamp | string | — |
italic | Italic (<em> semantics) | — | — |
level | Heading level (1-5) | string | 3 |
line-clamp | Number of lines before multi-line ellipsis (positive integer); combinable with ellipsis-suffix | string | — |
mark | Highlighted mark (light yellow background, <mark> semantics) | — | — |
numeric | — | — | — |
strong | Bold (font-weight 600, <strong> semantics) | — | — |
tag | Render tag: replaces the default element (e.g. sub / sup / ins / em / strong) | string | — |
type | Text type: default / secondary / success / warning / danger / disabled | TextType | default |
underline | Underline | — | — |
weight | — | WeightType | — |
| Event | Description |
|---|---|
oas-copy | Copy succeeded, detail: { text } |
oas-copy-error | Copy failed, detail: { text } |
| Name | Description |
|---|---|
| default | — |
actions | Action slot (copy/edit buttons etc.); position determined by actions-position |