Link
Introduction
The Link component is a user interface (UI) element that creates a clickable link. You can use it to navigate to other pages or link to related resources.

Configuration items
Category |
Configuration |
Example |
Description |
Text content |
The content of the Link component. |
||
Enable logo |
Specifies whether to display the logo. |
||
Logo configuration |
Configures the properties of the logo after you enable it. |
||
Tooltip |
Specifies whether to display the tooltip. |
||
Tooltip configuration |
Configures the properties of the tooltip after you enable it. |
||
Interaction |
Hide |
Controls the default display state of the Link component. If this property is set to |
|
Disable |
Controls the disabled state of the Link component. |
||
Style |
Height |
The height of the component. For more information, see Common properties. |
|
Margin |
For more information, see Common properties. |
||
Font size |
The font size of the link text. |
||
Line height |
The line-height property defines the vertical spacing between lines of text. |
||
Font weight |
The font-weight property specifies the thickness of the text. |
||
Overflow control |
The display effect when the text content overflows. |
||
Overflow hidden style |
The style effect when the overflowing text is hidden. |
||
Text wrap |
Specifies whether the text is displayed on a single line. |
||
Word break |
Specifies how to handle word break points in multiline text. |
||
Horizontal alignment |
The horizontal alignment of the link text. |
||
Vertical alignment |
The vertical alignment of the link text. |
||
Text transform |
Transforms the link text to all uppercase or all lowercase. You can also transform each word individually. |
||
CSS style |
Text color |
The color of the link text. |
|
Text shadow |
|
Adds a shadow to the text. You can set multiple shadow effects on the same element by separating them with commas. This property includes values for the X-axis offset, Y-axis offset, blur radius, spread radius, and color. |
|
Border |
The border of the Link component. For more information, see Common properties. |
||
Border radius |
The border radius of the Link component. For more information, see Common properties. |
||
Padding |
The padding of the Link component. For more information, see Common properties. |
Properties and methods
Name |
Type |
Example |
Description |
text |
string |
|
The current content of the Link component. |
hidden |
boolean |
|
Specifies whether the component is hidden. For more information, see Common properties. |
setText |
func |
|
Sets the link text content to |
clearText |
func |
|
Clears the link text content. |
setHidden |
func |
|
Sets whether the link is hidden. The parameter can be |
clearHidden |
func |
|
Clears the hidden state of the link. For more information, see Common properties. |
Event callbacks
Configuration |
Description |
An event that is triggered when a user clicks the link text. |
Scenarios
Navigation scenario
You can use links for account binding to navigate to different account systems.
