Project setup
Operating procedure
- Select a component.
- Adjust settings.
- Check the result in the browser.
The example state is stored in the Svelte component.
npm install @woodger/antd Text, headings and links with copying, editing and shortening.
Typography designs documents, headings, signatures, links and paragraphs with copying, editing or shortening text. Choose an option based on semantics: TypographyTitle creates a title of the required level, TypographyText - a line fragment, TypographyParagraph - a block of text, TypographyLink - a real link.
Regular Typography creates an article by default and can wrap an entire document. A simple native table inside a document is appropriate without interactive Table.
Typography, TypographyText, TypographyTitle, TypographyParagraph and TypographyLink are exported to Svelte. children accepts text, an array of content, or a snippet. For text operations, keep the source string in application state.
| Problem | Setting | Example |
|---|---|---|
| Create a document | Typography, TypographyTitle, TypographyParagraph |
Document with typography |
| Select title level | TypographyTitle.level |
Heading levels |
| Design line and link | TypographyText, TypographyLink |
Text and links |
| Let me change the line | editable |
Editing text |
| Add copy | copyable |
Copy text |
type specifies secondary/success/warning/danger. code, mark, keyboard, underline, delete, strong and italic change the appearance; strong is missing from TypographyTitle. disabled here styles the text, but does not automatically disable the action buttons. The link retains its href, target, and native behavior.
editable.onChange reports a string to assign to the state and pass it back to children. bind:value is missing. For a managed editor, set editable.editing and accept onStart/onEnd/onCancel; callbacks themselves do not rewrite your text. Guided Example stores the mode and result separately.
maxLength and autoSize configure the edit field, triggerType selects triggering by icon or text. actions.placement places operations at start/end. Icons and tooltip content accept text or Svelte snippets; action position shown separately.
copyable=true uses the original content text; for a complex snippet, set explicit copyable.text. This property also accepts an asynchronous function. This function is called when clicked; asynchronous example gets the current string for the buffer. Format distinguishes between text/plain and text/html, onCopy reports the completion of the operation. For HTML, pass the desired string explicitly rather than waiting for the snippet markup to be automatically exported.
TypographyText shrinks to one line and does not automatically fill the entire width: set the width constraint. TypographyParagraph/TypographyTitle support rows, expandable and collapsible, suffix and expanded/onExpand controls. defaultExpanded specifies only the initial expansion; onEllipsis reports the fact of reduction.
Shortening Long Text shows different widths and lines. Controlled disclosure stores expanded separately. To expand the file name, put the tail in suffix; tooltip and copy can use the full source string.
Scalar fragments and the children array preserve the text boundaries for the dimension; snippet is considered a single node. Check the reduction after changing the width and content in the browser. Whether the reduction occurs depends on the size of the DOM.
classNames/styles support root, actions, action and textarea object or function from props. styles - CSS strings; ConfigProvider.typography sets the defaults of the family. Semantic example shows the working design. The theme.components.Typography component design tokens set the header indentation; titleMarginTop operates on adjacent blocks provided by typography, and not on any arbitrary title. Shimmer from the 6.7 documentation has not been carried over.
Action buttons have locale accessible names. bind:nativeElement points to the current element, but is absent during editing. Do not use a link to the old node after switching to the editor.
All variants of the family support prefixCls. A non-empty value specifies the full local prefix; empty string and undefined use ConfigProvider.prefixCls with the -typography suffix. Each nested variant selects its own prefix: the local Typography.prefixCls is not passed to TypographyText automatically. The prefix covers decorations, ellipsis, operations, and a separate editor root. Example of prefixes preserves draft, selection, focus, and copy success when updating classes. The Namespace of the theme variables and the prefix of the nested Tooltip are set independently.
In the Ant Design 6.6.8 standard, the copy/edit actions when changing the prefix can preserve the previous classes due to memoization. Svelte updates them with the root; this is a conscious difference from this behavior of the standard.
The example state is stored in the Svelte component.
npm install @woodger/antd Typography designs an article with headings, paragraphs, lists, quotes and inline code.
<script lang="ts">
import { Typography, TypographyLink, TypographyParagraph, TypographyTitle } from '@woodger/antd';
</script>
<Typography>
<TypographyTitle level={3}>{("Project setup")}</TypographyTitle>
<TypographyParagraph>
{("Install the package and connect the styles. The general provider specifies the color, size, and density of the components.")}
</TypographyParagraph>
<TypographyTitle level={4}>{("Operating procedure")}</TypographyTitle>
<ol><li>
{("Select a component.")}
</li><li>
{("Adjust settings.")}
</li><li>
{("Check the result in the browser.")}
</li></ol>
<blockquote>{("The example state is stored in the Svelte component.")}</blockquote>
<pre><code>npm install @woodger/antd</code></pre>
<TypographyParagraph>{("Questions about the project can be asked at ")}<TypographyLink
href={("/contacts")}
>{("contact page")}</TypographyLink>.</TypographyParagraph>
</Typography>
level=1…5 creates a real h1…h5. Choose a level based on the structure of the document.
<script lang="ts">
import { TypographyTitle } from '@woodger/antd';
const levels = [1, 2, 3, 4, 5] as const;
</script>
{#each levels as level (level)}<TypographyTitle
{level}
>{("Level header ")}{(level)}</TypographyTitle>{/each}
npm install @woodger/antd Enter Underlined Color states, highlighting, code, keys and native link. disabled specifies the typography.
<script lang="ts">
import { TypographyLink, TypographyText } from '@woodger/antd';
</script>
<style>
.samples {
display: grid;
justify-items: start;
gap: 12px;
}
</style>
<div class="samples">
<TypographyText>{("Plain text")}</TypographyText>
<TypographyText type="secondary">{("Secondary text")}</TypographyText>
<TypographyText type="success">{("Operation completed")}</TypographyText>
<TypographyText type="warning">{("Check required")}</TypographyText>
<TypographyText type="danger">{("Operation error")}</TypographyText>
<TypographyText disabled>{("Inaccessible text")}</TypographyText>
<TypographyText mark>{("Marker highlighting")}</TypographyText>
<TypographyText code>npm install @woodger/antd</TypographyText>
<TypographyText keyboard>Enter</TypographyText>
<TypographyText underline>{("Underlined")}</TypographyText>
<TypographyText delete>{("Remote")}</TypographyText>
<TypographyText strong>{("Bold")}</TypographyText>
<TypographyText italic>{("Italic")}</TypographyText>
<TypographyLink href={("/contacts")} target="_blank">
{("Contacts in a new tab")}
</TypographyLink>
</div>
editable.onChange accepts the saved text. Enter saves, Escape cancels, loss of focus saves input.
<script lang="ts">
import { TypographyParagraph } from '@woodger/antd';
let text = $state(("Section name"));
</script>
<TypographyParagraph children={text} editable={{
onChange: next => { text = next; },
tooltip: "Change name"
}} />
<p><output aria-label={("Saved name")}>{text}</output></p>
Click on the text to edit. editing is controlled by the application; callbacks show the stages, maxLength and autoSize configure the editor.
<script lang="ts">
import { TypographyParagraph } from '@woodger/antd';
let text = $state(("Release Note"));
let editing = $state(false);
let events = $state<string[]>([]);
function handleStart() {
editing = true;
events = [...events, 'start'];
}
function handleSave(next: string) {
text = next;
editing = false;
events = [...events, 'change'];
}
function handleCancel() {
editing = false;
events = [...events, 'cancel'];
}
</script>
<TypographyParagraph children={text} editable={{
editing, maxLength: 80, autoSize: { minRows: 2, maxRows: 4 }, triggerType: ['text'],
tooltip: "Edit note", onStart: handleStart, onChange: handleSave,
onCancel: handleCancel, onEnd: () => { events = [...events, 'end']; }
}} />
<p><output aria-label={("Editing events")}>{(events.join(' → ')
|| ("No events"))}</output></p>
copyable copies the displayed or separately specified text. Tooltip and icons change after successful copying.
<script lang="ts">
import { TypographyParagraph } from '@woodger/antd';
let copies = $state(0);
</script>
<TypographyParagraph
copyable={{ tooltips: ["Copy address", "Address copied"] }}
>hello@woodger.org</TypographyParagraph>
<TypographyParagraph copyable={{
text: 'npm install @woodger/antd', icon: ['Copy', 'Done'],
tooltips: ["Copy command", "Command copied"], onCopy: () => { copies += 1; }
}}>{("Installation command")}</TypographyParagraph>
<p><output aria-label={("Copy command")}>{copies}</output></p>
The text function is called when clicked and can return a Promise. The displayed label remains separate from the copied line.
<script lang="ts">
import { TypographyParagraph } from '@woodger/antd';
let release = $state('1.0');
</script>
<style>
label {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
}
</style>
<TypographyParagraph copyable={{ text: async () => `Release ${release}: @woodger/antd`,
tooltips: ["Copy release details", "Information copied"]
}}>{("Current release information")}</TypographyParagraph>
<label>{("Release number ")}<input bind:value={release} /></label>
actions.placement places edit/copy before or after the text. Switching does not change the saved value.
<script lang="ts">
import { TypographyParagraph } from '@woodger/antd';
let text = $state(("Text with actions"));
let atStart = $state(false);
</script>
<style>
label {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 16px;
}
</style>
<label><input
type="checkbox"
bind:checked={atStart}
/>{(" Actions before text")}</label>
<TypographyParagraph children={text} actions={{ placement: atStart ? 'start' : 'end' }}
editable={{ onChange: next => { text = next; }, tooltip: "Change text with actions" }}
copyable={{ tooltips: ["Copy text with actions", "Text copied"] }} />
Text is reduced to one line at a given width; Paragraph supports multiple lines, expansion and Tooltip.
<script lang="ts">
import { TypographyParagraph, TypographyText } from '@woodger/antd';
const text =
"Project documentation contains descriptions of components, examples of use and API parameters. "
+ "First select the desired component, then check its behavior in light and dark themes. "
+ "The source code of each card can be opened and copied into your application. "
+ "General settings for size, color and density are saved between pages.";
</script>
<style>
.paragraph { margin-top: 20px; }
</style>
<TypographyText ellipsis style="
display: block;
width: 100%;
" children={text} />
<div class="paragraph"><TypographyParagraph children={text} ellipsis={{
rows: 2,
expandable: true,
tooltip: text,
symbol: "Read in full"
}} /></div>
expanded and onExpand are connected to the Svelte state. The collapsible mode allows you to collapse the text again; the external button resets the opening.
<script lang="ts">
import { Button, TypographyParagraph } from '@woodger/antd';
const text =
"Project documentation contains descriptions of components, examples of use and API parameters. "
+ "First select the desired component, then check its behavior in light and dark themes. "
+ "The source code of each card can be opened and copied into your application. "
+ "General settings for size, color and density are saved between pages.";
let expanded = $state(false);
</script>
<TypographyParagraph children={text} ellipsis={{
rows: 2, expandable: 'collapsible', expanded,
symbol: open => open ? "Collapse" : "Expand", onExpand: (
_event,
info
) => { expanded = info.expanded; }
}} />
<Button onclick={() => { expanded = false; }}>{("Collapse from outside")}</Button>
<p><output aria-label={("Text disclosure")}>{(expanded ? "Revealed" : "Collapsed")}</output></p>
The beginning of the line is transferred to children, the unchanged tail is transferred to suffix. This way the file name extension remains visible.
<script lang="ts">
import { TypographyText } from '@woodger/antd';
const filename = 'documentation-components-implementation-examples-release-notes-2026.md';
const tail = filename.slice(-12);
</script>
<TypographyText children={filename.slice(0, -tail.length)} ellipsis={{
suffix: tail,
tooltip: filename
}} style="
display: block;
width: 100%;
" />
The suffix remains with the abbreviated text. The original full line without a service label was sent for copying.
<script lang="ts">
import { TypographyParagraph } from '@woodger/antd';
const text =
"Project documentation contains descriptions of components, examples of use and API parameters. "
+ "First select the desired component, then check its behavior in light and dark themes. "
+ "The source code of each card can be opened and copied into your application. "
+ "General settings for size, color and density are saved between pages.";
</script>
<TypographyParagraph children={text} ellipsis={{
rows: 2,
expandable: true,
suffix: " - manual",
symbol: "Next"
}}
copyable={{ text, tooltips: ["Copy full paragraph", "Paragraph copied"] }} />
| Stage | Responsible |
|---|---|
| Development | Anna |
| Documentation | Boris |
Typography designs a regular table. For sorting, row selection, and pagination, use the Table component.
<script lang="ts">
import { Typography } from '@woodger/antd';
</script>
<style>
.table-scroll {
max-width: 100%;
overflow-x: auto;
}
</style>
<div class="table-scroll">
<Typography>
<table>
<caption>{("Release plan")}</caption>
<thead>
<tr>
<th scope="col">
{("Stage")}
</th>
<th scope="col">
{("Responsible")}
</th>
</tr>
</thead>
<tbody><tr><th
scope="row"
>{("Development")}</th><td>{("Anna")}</td></tr><tr><th
scope="row"
>{("Documentation")}</th><td>{("Boris")}</td></tr></tbody>
</table>
</Typography>
</div>
ConfigProvider.typography sets the general design. The local function styles and classNames change root/actions/action/textarea, preserving the original operations.
<script lang="ts">
import { ConfigProvider, TypographyParagraph } from '@woodger/antd';
let text = $state("Design Typography");
</script>
<ConfigProvider typography={{
styles: {
root: `
border-inline-start: 3px solid var(--ant-color-primary);
padding-inline-start: 12px;
`
}
}}>
<TypographyParagraph children={text} classNames={{ action: 'documented-typography-action' }}
styles={({ props }) => ({
root: props.direction === 'rtl' ? 'text-align:end' : '',
actions: 'margin-inline-start:8px',
action: 'color:#722ed1',
textarea: 'border-style:dashed'
})}
editable={{ onChange: next => { text = next; }, tooltip: "Edit semantic example" }}
copyable={{ tooltips: ["Copy semantic example", "Example copied"] }} />
</ConfigProvider>
Designed text To the example status Long string is shortened regardless of prefix The local prefix is passed to each option separately. The editor and actions update classes along with the text; Tooltip chooses its prefix independently.
All Typography options, abbreviations and operations use a local or shared prefixCls. The change preserves the editor and copy state.
<script lang="ts">
import {
Checkbox, ConfigProvider, Typography, TypographyLink, TypographyParagraph,
TypographyText, TypographyTitle
} from '@woodger/antd';
let custom = $state(true);
let local = $state(true);
let rtl = $state(false);
let text = $state(("Draft document"));
let event = $state(("No changes"));
let copies = $state(0);
const prefix = $derived(custom ? 'suite' : 'ant');
const prefixCls = $derived(local ? 'project-typography' : '');
</script>
<style>
.example {
display: grid;
gap: 20px;
min-width: 0;
}
.controls {
display: flex;
flex-wrap: wrap;
gap: 12px;
}
.scope {
display: grid;
gap: 12px;
min-width: 0;
}
p { margin: 0; }
output { overflow-wrap: anywhere; }
</style>
<div class="example">
<div class="controls">
<Checkbox bind:checked={custom}>{("General prefix Typography suite")}</Checkbox>
<Checkbox bind:checked={local}>{("Local prefix Typography")}</Checkbox>
<Checkbox bind:checked={rtl}>{("RTL Typography with prefix")}</Checkbox>
</div>
<ConfigProvider prefixCls={prefix} direction={rtl ? 'rtl' : 'ltr'}
theme={{ cssVar: { prefix: 'typography-theme' } }}>
<div class="scope">
<Typography {prefixCls} class="prefix-typography-article">
{("Document with prefix")}
</Typography>
<TypographyTitle {prefixCls} level={4} style="margin:0"
class="prefix-typography-title">{("Document title")}</TypographyTitle>
<TypographyText {prefixCls} strong mark code type="secondary"
class="prefix-typography-text">{("Designed text")}</TypographyText>
<TypographyLink {prefixCls} href={("#typography-prefix-destination")}
class="prefix-typography-link">{("To the example status")}</TypographyLink>
<TypographyText {prefixCls} ellipsis style="
width: 100%;
max-width: 180px;
"
class="prefix-typography-ellipsis">
{("Long string is shortened regardless of prefix")}
</TypographyText>
<TypographyParagraph {prefixCls} children={text} style="margin-bottom:0"
class="prefix-typography-editor" editable={{
tooltip: "Edit text with prefix",
onChange: next => { text = next; event = ("Saved"); },
onCancel: () => { event = ("Canceled"); }
}} copyable={{
text, tooltips: ["Copy text with prefix", "Text with prefix copied"],
onCopy: () => { copies += 1; }
}} />
</div>
</ConfigProvider>
<ConfigProvider prefixCls="neighbor">
<TypographyText {prefixCls} type="warning" class="prefix-typography-neighbor">
{("\n Neighboring area neighbor\n ")}
</TypographyText>
</ConfigProvider>
<output id="typography-prefix-destination" aria-label={("Typography status with prefix")}>{("\n General: ")}{prefix}{("; class: ")}{(prefixCls
|| prefix + '-typography')};
{event}{("; copies: ")}{copies}{("; text: ")}{text}
</output>
<p>
{("The local prefix is passed to each option separately. The editor and actions update classes along with the text; Tooltip chooses its prefix independently.")}
</p>
</div>
npm install @woodger/antd Enter Component Gallery Initial example from the review: design, link, editing, copying and collapsible description.
<script lang="ts">
import {
Typography,
TypographyLink,
TypographyParagraph,
TypographyText,
TypographyTitle
} from '@woodger/antd';
let text = $state(("This text can be edited directly on the page."));
const description = "Ant Design for Svelte combines typed components, "
+ "available controls and general design settings. "
+ "Long text can be collapsed to two lines and then expanded entirely, "
+ "maintaining the context of the page and the location of the remaining examples.";
</script>
<style>
.example { max-width: 640px; }
.samples {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 12px;
margin-bottom: 16px;
}
</style>
<div class="example">
<Typography>
<TypographyTitle level={3}>{("Text, headings and links")}</TypographyTitle>
<div class="samples">
<TypographyText>{("Plain text")}</TypographyText>
<TypographyText type="secondary">{("Secondary")}</TypographyText>
<TypographyText type="success">{("Success")}</TypographyText>
<TypographyText type="warning">{("Warning")}</TypographyText>
<TypographyText type="danger">{("Error")}</TypographyText>
<TypographyText mark>{("Selection")}</TypographyText>
<TypographyText code>npm install @woodger/antd</TypographyText>
<TypographyText keyboard>Enter</TypographyText>
<TypographyLink
href={("/ant-design")}
>{("Component Gallery")}</TypographyLink>
</div>
<TypographyParagraph
children={text}
editable={{ onChange: value => { text = value; }, tooltip: "Edit text" }}
copyable={{ text, tooltips: ["Copy text", "Copied"] }}
/>
<TypographyParagraph
children={description}
ellipsis={{
rows: 2,
expandable: 'collapsible',
symbol: expanded => expanded ? "Collapse" : "More"
}}
/>
</Typography>
</div>
Eleven ant.design live page themes mapped to the available Svelte API. Full Props definitions belong to the package; The table shows the main parameters of the operations.
| Theme | Example or limitation |
|---|---|
| Basic | Article, list, quote and code. |
| Title Component | Real h1…h5. |
| Text and Link Component | Colors, decorations and native links. |
| Shimmer Text | shimmer was introduced in React 6.7.0; not present in the installed package. |
| Editable | Additionally, controlled editing, callbacks and placement actions are shown. |
| Copyable | Plain and separately specified text; an additional example returns a Promise. |
| Ellipsis | Single and multiple lines, Tooltip and expansion. |
| Controlled ellipsis expand/collapse | Controlled expanded and external reset. |
| Ellipsis from middle | Stored tail of the file name via suffix. |
| suffix | Paragraph with suffix and copying of the full text. |
| Table | Design of native table inside Typography. |
| CSS prefix | General and local prefixes of all variants; maintaining a draft, focus and successful copying. |
| Property | Description | Type | Default |
|---|---|---|---|
prefixCls | Full local prefix for text, design, actions, and editor. The empty string and undefined use the provider prefix. | string | ConfigProvider.prefixCls + "-typography" |
children | Strings, numbers, arrays and Svelte snippets. For copy and reduce operations, the source string is important. | TypographyContent | — |
editable | Editor and callbacks. The application saves the new row in onChange. | boolean | TypographyEditConfig | false |
copyable | Copying the original or separately specified text; text can be an asynchronous function. | boolean | TypographyCopyConfig | false |
ellipsis | Paragraph and Title support rows and expansion. Text has no rows, expandable, or onExpand. link accepts a boolean only. tooltip.alignPoint anchors the tooltip to the pointer coordinates. | boolean | TypographyEllipsisConfig | false |
actions | Position of the edit/copy/expand panel relative to the text. | { placement: start | end } | end |
type | Text color. disabled specifies the design; it does not disable action handlers. | secondary | success | warning | danger | Regular color |
code | Monospace design. Mark, keyboard, underline, delete, strong and italic are also available; strong is missing from Title. | boolean | false |
classNames | Classes root, actions, action and textarea, object or function from info.props. | TypographySemantic | — |
styles | CSS lines for the same slots. Local values override ConfigProvider.typography. | TypographySemantic | — |
nativeElement | bind:nativeElement returns the current HTML element; when going to the editor it is missing. | HTMLElement | — |
Typography creates an article, component changes the native container. TypographyTitle uses level=1...5, TypographyText - span, TypographyParagraph - div with indent, TypographyLink - a with href. target="_blank" gets rel="noopener noreferrer" if rel is not specified explicitly.
text specifies the source text of the editor; editing enables managed mode. onStart, onChange, onCancel and onEnd communicate start, save, cancel and end via Enter. In controlled mode, the owner changes editing and children independently. maxLength, autoSize, triggerType, icon, tooltip, enterIcon and tabIndex configure the editor and its launch.
text - string or function with Promise; empty value uses children. icon and tooltips can specify normal and successful states. tooltips=false hides tooltips, tabIndex controls Tab order. format selects text/plain or text/html, onCopy is called after successful copying.
rows limits the rows, expandable=true allows you to expand, collapsible - expands and collapses. expanded/onExpand control the state, defaultExpanded sets the start. suffix remains with the abbreviated text, symbol changes the action label, tooltip shows the full line, onEllipsis reports the fact of abbreviation.
root - current container; actions — operations panel; action - each button; textarea - editor field. The classNames/styles objects and functions are available both locally and through ConfigProvider.typography. styles accepts CSS strings.
Headings retain h1...h5, links - native a. Operations are performed by buttons with names from locale or tooltips. When editing, focus goes to the textarea: Enter saves, Shift+Enter adds a line, Escape cancels, blur saves.
The family does not have separate focus()/blur() instances. For a native element there is bind:nativeElement; during editing, the main element is replaced by the editor.
Each Typography variant chooses its own prefixCls: the local article prefix is not passed to the nested TypographyText automatically. The prefix covers text, decorations, ellipsis, actions and editor; Theme namespace and Tooltip prefix are independent. When changing the prefix, the current mode's DOM, draft, and copy state are preserved.
Two component tokens are checked against ant.design and ComponentTokenMap. theme.components.Typography applies header indentation in appropriate typographic states. Local styling is specified by ConfigProvider.typography and semantic styles, as in design card.
| Token | Purpose |
|---|---|
titleMarginTop | Header top indent. |
titleMarginBottom | Bottom header indent. |
theme.useToken() values react to section settings.
| Token | Current value |
|---|---|
colorErrorText | #ff4d4f |
colorErrorTextActive | #d9363e |
colorErrorTextHover | #ff7875 |
colorFillAlter | rgba(0,0,0,0.02) |
colorIcon | rgba(0,0,0,0.45) |
colorLink | #1677ff |
colorLinkActive | #0958d9 |
colorLinkHover | #69b1ff |
colorPrimaryBorder | #adc6ff |
colorSplit | rgba(5,5,5,0.06) |
colorSuccess | #52c41a |
colorSuccessText | #52c41a |
colorText | rgba(0,0,0,0.88) |
colorTextDescription | rgba(0,0,0,0.45) |
colorTextDisabled | rgba(0,0,0,0.25) |
colorTextHeading | rgba(0,0,0,0.88) |
colorWarningText | #faad14 |
borderRadiusLG | 8 |
fontFamilyCode | 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace |
fontSize | 14 |
fontSizeHeading1 | 38 |
fontSizeHeading2 | 30 |
fontSizeHeading3 | 24 |
fontSizeHeading4 | 20 |
fontSizeHeading5 | 16 |
fontWeightStrong | 600 |
lineHeight | 1.5714285714285714 |
lineHeightHeading1 | 1.2105263157894737 |
lineHeightHeading2 | 1.2666666666666666 |
lineHeightHeading3 | 1.3333333333333333 |
lineHeightHeading4 | 1.4 |
lineHeightHeading5 | 1.5 |
lineType | solid |
lineWidth | 1 |
lineWidthFocus | 3 |
linkDecoration | none |
linkFocusDecoration | none |
linkHoverDecoration | none |
marginXS | 8 |
marginXXS | 4 |
motionDurationMid | 0.2s |
motionDurationSlow | 0.3s |
padding | 16 |
paddingSM | 12 |
Accept a string from editable.onChange into the state and pass it to children. Editing mode and content are controlled separately.
Inline TypographyText needs an explicit width. For multiple lines and expansion, use TypographyParagraph or TypographyTitle.
Pass the tail of the string to suffix. For tooltip and copy, you can leave the full original name.
For a simple document table, the table inside Typography is sufficient. Table is needed for sorting, filters, row selection and pagination.