On this page:

Inline Link

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Small

Medium

Large

TokenColor forState/Meaning
--color-text-link-standard-enabledStandard linkEnabled
--color-text-link-standard-hoveredStandard linkHovered
--color-text-link-standard-focusedStandard linkFocused
--color-text-link-standard-disabledStandard linkDisabled
--color-text-link-neutral-enabledNeutral linkEnabled
--color-text-link-neutral-hoveredNeutral linkHovered
--color-text-link-neutral-focusedNeutral linkFocused
--color-text-link-neutral-disabledNeutral linkDisabled

InlineLink may also inherit some tokens from Button or Text components for typography and spacing. See their documentation for more details.


PropTypeDefaultDescription
hrefstringLink URL
targetstringTarget attribute (_blank, _self, etc.)
size'sm' | 'md' | 'lg''md'Link size
color'neutral' | 'standard''standard'Link color
disabledbooleanfalseDisable the link
underline'always' | 'hover' | 'none''hover'Underline behavior
iconOnlybooleanfalseIcon only, no text
asChildbooleanfalseRender as child element
...aPropsHTMLAnchorElement propsAll native anchor props (className, style, ...)

Note: InlineLink inherits all native props from HTMLAnchorElement.