Link

The Link component opens a URL.

Basic usage

tsx
Copied
1
<Link href="https://airplane.dev">Airplane</Link>

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
tsx
Copied
1
<Link href="https://airplane.dev" newTab={false}>
2
Airplane
3
</Link>
A Link takes all of the same props as Text, so it can be customized like other pieces of text.
tsx
Copied
1
<Link href="https://airplane.dev" size="xl" color="success">
2
Airplane
3
</Link>

Component API

grow
optional
boolean

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
SizingToken | "{number}px"
Defines the height of the component. See SizingToken docs for more details.
width
optional
default: auto
SizingToken | "{number}px"
Defines the width of the component. See SizingToken docs for more details.