Link
Text hyperlink
Basic
Basic text link
Disabled
Disabled state of link
Underline
Underline of link
Icon
Link with icon
TIP
Use the icon
attribute to add icon. You can pass either string for the component name (registered in advance) or the component itself which is a SVG Vue component. Element Plus has provided a set of icon that you can find at icon
API
Attributes
Name | Description | Type | Default |
---|---|---|---|
type | type | enum | default |
underline | whether the component has underline | boolean | true |
disabled | whether the component is disabled | boolean | false |
href | same as native hyperlink's href | string | — |
target | same as native hyperlink's target | enum | _self |
icon | icon component | string / Component | — |
Slots
Name | Description |
---|---|
default | customize default content |
icon | customize icon component |