Link
The
Link
component opens a URL.Basic usage
Basic usage
tsxCopied1<Link href="https://airplane.dev">Airplane</Link>
Opening in the same tab
Opening in the same tab
By default, a
Link
opens a URL in a new tab. To open in the same tab, set newTab=false
tsxCopied1<Link href="https://airplane.dev" newTab={false}>2Airplane3</Link>
Customizing the link
Customizing the link
A
Link
takes all of the same props as Text
, so it can
be customized like other pieces of text.tsxCopied1<Link href="https://airplane.dev" size="xl" color="success">2Airplane3</Link>
Component API
Component API
grow
optional
If true, the element will grow to fill available space.
This prop works only if the element is a direct child of a Stack.
height
optional
Default
auto
width
optional
Default
auto