Link

A link allows a user to navigate to another page or resource within a web page or application.

Examples

Custom Styling

With Icon

Props

target
HTMLAttributeAnchorTarget
href
string
onFocus
((e: FocusEvent<Element, Element>) => void)
onBlur
((e: FocusEvent<Element, Element>) => void)
onKeyDown
((e: KeyboardEvent) => void)
onKeyUp
((e: KeyboardEvent) => void)
onClick
((e: MouseEvent<FocusableElement, MouseEvent>) => void)
isDisabled
boolean
onPress
((e: PressEvent) => void)
onPressStart
((e: PressEvent) => void)
onPressEnd
((e: PressEvent) => void)
onPressChange
((isPressed: boolean) => void)
onPressUp
((e: PressEvent) => void)
autoFocus
boolean
onFocusChange
((isFocused: boolean) => void)
hrefLang
string
rel
string
download
string | boolean
ping
string
referrerPolicy
HTMLAttributeReferrerPolicy
routerOptions
undefined
onHoverStart
((e: HoverEvent) => void)
onHoverEnd
((e: HoverEvent) => void)
onHoverChange
((isHovering: boolean) => void)
children
ReactNode | ((values: LinkRenderProps & { defaultChildren: ReactNode; }) => ReactNode)
className
string | ((values: LinkRenderProps & { defaultClassName: string; }) => string)
style
CSSProperties | ((values: LinkRenderProps & { defaultStyle: CSSProperties; }) => CSSProperties)
slot
string | null
ref
Ref<HTMLAnchorElement>
key
Key | null