Flutter docs
Default skin

Typography

Basic text writing, including headings, body text, lists, and more.

When to use

  • When displaying titles or paragraph content in articles, blogs, notes, and product surfaces.
  • When text needs copyable, editable, or ellipsis behavior.

Examples

Basic

Display a document sample.

Title Component

Display titles at different levels.

Text and Link Component

Use the supported text states and links.

Editable

Make Typography editable.

Copyable

Make Typography copyable with configuration options.

Ellipsis

Use multi-line ellipsis, tooltips, and expandable content.

Controlled ellipsis expand/collapse

Control multi-line text omission.

Ellipsis from middle

Preserve a suffix while truncating the middle.

suffix

Add suffix-aware ellipsis.

Table

Use Typography document styles for native tables.

API

Typography.Text, Typography.Title, Typography.Paragraph, and Typography.Link are the exact exported from @ceebee/ui/client, including copyable, editable, and ellipsis configuration.

Typography.Text

PropertyDescriptionTypeDefaultVersion
actionsConfigure the operation baractions-6.4.0
classNamesCustomize class for each semantic structure inside the component. Supports object or function.Record<SemanticDOM, string> | (info: { props })=> Record<SemanticDOM, string>-6.4.0
codeCode stylebooleanfalse—
copyableWhether to be copyable, customize it via setting an objectboolean | copyablefalse—
deleteDeleted line stylebooleanfalse—
disabledDisabled contentbooleanfalse—
editableIf editable. Can control edit state when is objectboolean | editablefalse—
ellipsisDisplay ellipsis when text overflows, can't configure expandable, rows and onExpand by using object. Diff with Typography.Paragraph, Text do not have 100% width style which means it will fix width on the first ellipsis. If you want to have responsive ellipsis, please set width manuallyboolean | Omit<ellipsis, 'expandable' | 'rows' | 'onExpand'>false—
italicItalic stylebooleanfalse4.16.0
keyboardKeyboard stylebooleanfalse4.3.0
markMarked stylebooleanfalse—
strongBold stylebooleanfalse—
stylesCustomize inline style for each semantic structure inside the component. Supports object or function.Record<SemanticDOM, CSSProperties> | (info: { props })=> Record<SemanticDOM, CSSProperties>-6.4.0
typeContent typesecondary | success | warning | danger-success: 4.6.0
underlineUnderlined stylebooleanfalse—
onClickSet the handler to handle click event(event) => void-—

Typography.Title

PropertyDescriptionTypeDefaultVersion
actionsConfigure the operation baractions-6.4.0
classNamesCustomize class for each semantic structure inside the component. Supports object or function.Record<SemanticDOM, string> | (info: { props })=> Record<SemanticDOM, string>-6.4.0
codeCode stylebooleanfalse—
copyableWhether to be copyable, customize it via setting an objectboolean | copyablefalse—
deleteDeleted line stylebooleanfalse—
disabledDisabled contentbooleanfalse—
editableIf editable. Can control edit state when is objectboolean | editablefalse—
ellipsisDisplay ellipsis when text overflows, can configure rows and expandable by using objectboolean | ellipsisfalse—
italicItalic stylebooleanfalse4.16.0
levelSet content importance. Match with h1, h2, h3, h4, h5number: 1, 2, 3, 4, 515: 4.6.0
markMarked stylebooleanfalse—
stylesCustomize inline style for each semantic structure inside the component. Supports object or function.Record<SemanticDOM, CSSProperties> | (info: { props })=> Record<SemanticDOM, CSSProperties>-6.4.0
typeContent typesecondary | success | warning | danger-success: 4.6.0
underlineUnderlined stylebooleanfalse—
onClickSet the handler to handle click event(event) => void-—

Typography.Paragraph

PropertyDescriptionTypeDefaultVersion
actionsConfigure the operation baractions-6.4.0
classNamesCustomize class for each semantic structure inside the component. Supports object or function.Record<SemanticDOM, string> | (info: { props })=> Record<SemanticDOM, string>-6.4.0
codeCode stylebooleanfalse—
copyableWhether to be copyable, customize it via setting an objectboolean | copyablefalse—
deleteDeleted line stylebooleanfalse—
disabledDisabled contentbooleanfalse—
editableIf editable. Can control edit state when is objectboolean | editablefalse—
ellipsisDisplay ellipsis when text overflows, can configure rows and expandable by using objectboolean | ellipsisfalse—
italicItalic stylebooleanfalse4.16.0
markMarked stylebooleanfalse—
strongBold stylebooleanfalse—
stylesCustomize inline style for each semantic structure inside the component. Supports object or function.Record<SemanticDOM, CSSProperties> | (info: { props })=> Record<SemanticDOM, CSSProperties>-6.4.0
typeContent typesecondary | success | warning | danger-success: 4.6.0
underlineUnderlined stylebooleanfalse—
onClickSet the handler to handle click event(event) => void-—

actions

PropertyDescriptionTypeDefaultVersion
placementSet the operation bar placement relative to the textstart | endend6.4.0

copyable

PropertyDescriptionTypeDefaultVersion
formatThe Mime Type of the text'text/plain' | 'text/html'-4.21.0
iconCustom copy icon: \[copyIcon, copiedIcon]\[ReactNode, ReactNode]-4.6.0
tabIndexSet tabIndex of the copy buttonnumber05.17.0
textThe text to copystring-—
tooltipsCustom tooltip text, hide when it is false\[ReactNode, ReactNode]\[Copy, Copied]4.4.0
onCopyCalled when copied textfunction-—

editable

PropertyDescriptionTypeDefaultVersion
autoSizeautoSize attribute of textareaboolean | { minRows: number, maxRows: number }-4.4.0
editingWhether to be editablebooleanfalse—
enterIconCustom "enter" icon in the edit field (passing null removes the icon)ReactNode<EnterOutlined />4.17.0
iconCustom editable iconReactNode&lt;EditOutlined />4.6.0
maxLengthmaxLength attribute of textareanumber-4.4.0
tabIndexSet tabIndex of the edit buttonnumber05.17.0
textEdit text, specify the editing content instead of using the children implicitlystring-4.24.0
tooltipCustom tooltip text, hide when it is falseReactNodeEdit4.6.0
triggerTypeEdit mode trigger - icon, text or both (not specifying icon as trigger hides it)Array&lt;icon|text>\[icon]—
onCancelCalled when type ESC to exit editable statefunction-—
onChangeCalled when editing is completedfunction(value: string)-—
onEndCalled when type ENTER to exit editable statefunction-4.14.0
onStartCalled when enter editable statefunction-—

ellipsis

PropertyDescriptionTypeDefaultVersion
defaultExpandedDefault expand or collapseboolean—5.16.0
expandableWhether to be expandableboolean | 'collapsible'-collapsible: 5.16.0
expandedExpand or Collapseboolean—5.16.0
rowsMax rows of contentnumber-—
suffixSuffix of ellipsis contentstring-—
symbolCustom description of ellipsisReactNode | ((expanded: boolean) => ReactNode)Expand Collapse—
tooltipShow tooltip when ellipsisReactNode | TooltipProps-4.11.0
onEllipsisCalled when enter or leave ellipsis statefunction(ellipsis)-4.2.0
onExpandCalled when expand contentfunction(event, { expanded: boolean })-info: 5.16.0