KLink
Text hyperlink
Install
bash
pnpm add @ikun-ui/linkbash
yarn add @ikun-ui/linkbash
npm install @ikun-ui/linkBasic usage
Basic text link
Disabled
Disabled state of link
Underline
Underline of link
Icon
Link with icon
link Props
| Name | Type | Default | Description |
|---|---|---|---|
| type | primary / success / error / warning / info / default | default | Button type |
| underline | boolean | true | whether the component has underline |
| disabled | boolean | false | whether the component is disabled |
| href | string | - | same as native hyperlink's href |
| icon | string | - | link's icon |
| cls | string | - | Additional class |
| attrs | Record<string, string> | {} | Additional attributes |
link Slots
| Name | Description |
|---|---|
| default | Customize default content |
| icon | Customize icon content |