1. Kikita UI
  2. Components
  3. Actions
  4. Link
  5. Playground
Skip to content
Kikita UI
  • Installation
  • Theming
  • Tokens
  • Typography
  • Density
  • Accessibility
  • Migrating to 2.0
  • Internationalization
  • Defaults
  • Structural icons
  • Auto Focus
  • Forms
  • AI Support
  • Package Smoke
  • Button
  • Link
  • Icon Button
  • Menu
  • Command Palette
  • Field
  • Input
  • Color Input
  • Select
  • Combobox
  • Date Picker
  • Time Picker
  • Calendar
  • Calendar Range
  • File Upload
  • Segmented
  • Slider
  • Number Input
  • OTP Input
  • Textarea
  • Checkbox
  • Switch
  • Radio
  • Group
  • Badge
  • Loader
  • Skeleton
  • Tooltip
  • Toast
  • Empty State
  • Alert
  • Progress
  • Card
  • Tabs
  • Accordion
  • Breadcrumbs
  • Popover
  • Dialog
  • Media Viewer
  • Drawer
  • Splitter
  • Dropdown
  • Separator
  • Stepper
  • Icon
  • Avatar
  • Table
  • Pagination
  • Line Chart
  • Bar Chart
  • Scatter Chart
  • Donut Chart
  • Carousel
  • Chip
  • Scrollbar
  • Tree

Link — Playground

px
Read the docs
host element
tone
underline
variant
iconStart
iconEnd
target
external
State
html.html
<a kuiLink href="#docs">Read the docs</a>
NameTypeDefaultDescription
tone'default' | 'muted' | 'primary' | 'success' | 'warning' | 'danger' | undefinedundefinedRest colour only; hover, focus and active never change it. Falls back to defaults.link.tone, then primary.
underline'always' | 'hover' | 'none' | undefinedundefinedWhen the link is underlined (defaults.link.underline, then hover). Use always inside running text; hover also underlines on focus-visible and active.
variant'body-lg' | 'body' | 'body-sm' | 'caption''body'Forwarded to the composed kuiText directive. The link has no typography scale of its own and ignores defaults.typography.
iconStart / iconEndstring | undefinedundefinedDecorative icon name rendered through kui-icon before or after the content. An explicit iconEnd replaces the external-link glyph.
target / relstring | undefinedundefinedReflected onto the host as native attributes. rel is merged with noopener noreferrer for external links.
externalboolean | undefinedtarget() === "_blank"Marks the link as leaving the app: adds rel="noopener noreferrer", the external-link glyph (unless iconEnd is set) and a hidden "(opens in a new tab)" suffix to the name.
disabledbooleanfalseA disabled anchor gets aria-disabled, tabindex -1 and a blocked click; a button also gets the native disabled attribute.
href, type, (click)native attributes-Plain bindings on the host a or button. There is no as input: use a button without a real href for a JS-driven action.
--kui-link-color-default / -muted / -primary / -success / -warning / -danger / -disabledCSS custom properties-Rest colour per tone and the disabled colour.
--kui-link-focus-ring / -radius-focusCSS custom properties-Focus ring shadow and its corner radius.
--kui-link-decoration-thickness-rest / -activeCSS custom properties-Underline thickness at rest and on hover, focus and active.
--kui-link-gapCSS custom property-Gap between the icons and the text.
KuiLinkOptionsinterface-Shape of defaults.link: tone, underline and externalIcon.

Inputs verified against @kikita-labs/ui v2.0.0 public typings.