Color
Typography
Spacing
Radius
Border
Opacity
Elevation
Blur
Avatar
Badge
Button
Checkbox
Input
ProgressBar
RadioButton
Separator
Slider
Switch
TextArea
TextLink
Accordion
Breadcrumb
ButtonGroup
Combobox
DropdownMenu
ListItem
Pagination
SegmentedControl
Select
Tooltip
Calendar
Card
CommandMenu
DatePicker
Dialog
Drawer
EmptyState
Footer
Form
NavigationBar
Sidebar
Skeleton
Table
Tabs
Toaster

TextLink

Inline navigation. Underlined or not, default or muted, with optional leading/trailing icons.

Underline

Usage

Import the component and render it.

import { TextLink } from 'src/components/TextLink/TextLink';

<TextLink underline href="#">Link</TextLink>

Accessibility

Role: link (native <a href>).

KeyAction
EnterFollows the link
TabMoves focus (shows the Focus Border via :focus-visible)
  • Use a native <a href>; use a Button for actions that do not navigate.
  • Disabled links keep the link role with aria-disabled="true", lose their href and leave the Tab order.
  • If the link only has an icon, give it an aria-label.

Underline

Set the underline prop: True is {true}, False is {false}.

True
False
<TextLink underline>Link</TextLink>
<TextLink>Link</TextLink>

States

Disabled comes from the disabled prop; Muted from the muted prop. Hover and Focus follow the pointer and the keyboard: try them in the playground.

Default
Disabled
Muted
<TextLink disabled>Link</TextLink>
<TextLink muted>Link</TextLink>

Used in

TextLink is part of Breadcrumb, EmptyState, Footer and NavigationBar.