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

isDisabled
boolean—
onPress
((e: PressEvent) => void)—
onPressStart
((e: PressEvent) => void)—
onPressEnd
((e: PressEvent) => void)—
onPressChange
((isPressed: boolean) => void)—
onPressUp
((e: PressEvent) => void)—
onClick
((e: MouseEvent<FocusableElement, MouseEvent>) => void)—
autoFocus
boolean—
onFocus
((e: FocusEvent<Element, Element>) => void)—
onBlur
((e: FocusEvent<Element, Element>) => void)—
onFocusChange
((isFocused: boolean) => void)—
onKeyDown
((e: KeyboardEvent) => void)—
onKeyUp
((e: KeyboardEvent) => void)—
href
string—
hrefLang
string—
target
HTMLAttributeAnchorTarget—
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—