logo

Typography

Examples

Display the document sample.

expand code expand code

Display title in different level.

expand code expand code

Provides multiple types of text and link.

expand code expand code

Provide additional interactive capacity of editable and copyable.

expand code expand code

Multiple line ellipsis support.

expand code expand code

add suffix ellipsis support.

expand code expand code

Typography API#

Property Description Type Default Value
Code ParameterCode style Boolean false
Copyable ParameterIf the text can be copied or not. Will add a copy icon to end of text if true. Boolean false
CopyConfig ParameterConfigure what happens when copying TypographyCopyableConfig --
Delete ParameterStrikethrough style Boolean false
Disabled ParameterDisabled style Boolean false
Editable ParameterControl if editable or not Boolean false
EditConfig ParameterConfigure editing TypographyEditableConfig --
Ellipsis ParameterDisplay ellipsis when text overflows. Should set width when ellipsis needed Boolean false
EllipsisConfig ParameterConfigure ellipsis TypographyEllipsisConfig --
Mark ParameterHighlight the text Boolean --
Underline ParameterUnderline the text Boolean --
Strong ParameterBold the text Boolean --
OnChange ParameterCallback executed when the user edits the content EventCallback<String> --
Type ParameterContent type - styles text. Possible values: secondary, warning, danger String --
ChildContent ParameterContent to wrap RenderFragment --
Id ParameterID for the component's HTML String Uniquely Generated ID
Class ParameterSpecifies one or more class names for an DOM element. String --
Style ParameterSpecifies an inline style for a DOM element. String --
RefBack ParameterA ForwardRef instance. You can get a reference to the internal DOM by using AntDesign.ForwardRef.Current. ForwardRef --

Text API#

Property Description Type Default Value
Keyboard ParameterKeyboard style Boolean false
Code ParameterCode style Boolean false
Copyable ParameterIf the text can be copied or not. Will add a copy icon to end of text if true. Boolean false
CopyConfig ParameterConfigure what happens when copying TypographyCopyableConfig --
Delete ParameterStrikethrough style Boolean false
Disabled ParameterDisabled style Boolean false
Editable ParameterControl if editable or not Boolean false
EditConfig ParameterConfigure editing TypographyEditableConfig --
Ellipsis ParameterDisplay ellipsis when text overflows. Should set width when ellipsis needed Boolean false
EllipsisConfig ParameterConfigure ellipsis TypographyEllipsisConfig --
Mark ParameterHighlight the text Boolean --
Underline ParameterUnderline the text Boolean --
Strong ParameterBold the text Boolean --
OnChange ParameterCallback executed when the user edits the content EventCallback<String> --
Type ParameterContent type - styles text. Possible values: secondary, warning, danger String --
ChildContent ParameterContent to wrap RenderFragment --
Id ParameterID for the component's HTML String Uniquely Generated ID
Class ParameterSpecifies one or more class names for an DOM element. String --
Style ParameterSpecifies an inline style for a DOM element. String --
RefBack ParameterA ForwardRef instance. You can get a reference to the internal DOM by using AntDesign.ForwardRef.Current. ForwardRef --

Title API#

Property Description Type Default Value
Level ParameterLevel of heading (ex: h1 would be 1). Must be between 1 and 4, inclusive. If outside that range it will default back to 1. Int32 1
Code ParameterCode style Boolean false
Copyable ParameterIf the text can be copied or not. Will add a copy icon to end of text if true. Boolean false
CopyConfig ParameterConfigure what happens when copying TypographyCopyableConfig --
Delete ParameterStrikethrough style Boolean false
Disabled ParameterDisabled style Boolean false
Editable ParameterControl if editable or not Boolean false
EditConfig ParameterConfigure editing TypographyEditableConfig --
Ellipsis ParameterDisplay ellipsis when text overflows. Should set width when ellipsis needed Boolean false
EllipsisConfig ParameterConfigure ellipsis TypographyEllipsisConfig --
Mark ParameterHighlight the text Boolean --
Underline ParameterUnderline the text Boolean --
Strong ParameterBold the text Boolean --
OnChange ParameterCallback executed when the user edits the content EventCallback<String> --
Type ParameterContent type - styles text. Possible values: secondary, warning, danger String --
ChildContent ParameterContent to wrap RenderFragment --
Id ParameterID for the component's HTML String Uniquely Generated ID
Class ParameterSpecifies one or more class names for an DOM element. String --
Style ParameterSpecifies an inline style for a DOM element. String --
RefBack ParameterA ForwardRef instance. You can get a reference to the internal DOM by using AntDesign.ForwardRef.Current. ForwardRef --

Paragraph API#

Property Description Type Default Value
Code ParameterCode style Boolean false
Copyable ParameterIf the text can be copied or not. Will add a copy icon to end of text if true. Boolean false
CopyConfig ParameterConfigure what happens when copying TypographyCopyableConfig --
Delete ParameterStrikethrough style Boolean false
Disabled ParameterDisabled style Boolean false
Editable ParameterControl if editable or not Boolean false
EditConfig ParameterConfigure editing TypographyEditableConfig --
Ellipsis ParameterDisplay ellipsis when text overflows. Should set width when ellipsis needed Boolean false
EllipsisConfig ParameterConfigure ellipsis TypographyEllipsisConfig --
Mark ParameterHighlight the text Boolean --
Underline ParameterUnderline the text Boolean --
Strong ParameterBold the text Boolean --
OnChange ParameterCallback executed when the user edits the content EventCallback<String> --
Type ParameterContent type - styles text. Possible values: secondary, warning, danger String --
ChildContent ParameterContent to wrap RenderFragment --
Id ParameterID for the component's HTML String Uniquely Generated ID
Class ParameterSpecifies one or more class names for an DOM element. String --
Style ParameterSpecifies an inline style for a DOM element. String --
RefBack ParameterA ForwardRef instance. You can get a reference to the internal DOM by using AntDesign.ForwardRef.Current. ForwardRef --
Icon Divider
文档已更新,请点击 此处 更新。
A new version of this app is available. Click here to update.