npx gluestack-ui add linkimport { Link } from '@/components/ui/link';
export default () => (
<Link>
<LinkText />
</Link>
);
| Platform | Output |
|---|---|
Web | <a /> |
Native | <Pressable /> |
| Prop | Type | Default | Description |
|---|---|---|---|
href | string | - | URL that should be opened on Link press |
onPress | (event?: GestureResponderEvent) => any | - | Callback that will be invoked on Link press |
isExternal | boolean | false | If true, link will be opened in new tab on web |
isHovered | boolean | false | When true, the link displays a hover state |
isFocusVisible | boolean | false | To manually set focus visible state to the link |
size | xs | sm | md | lg | xl | 2xl | 3xl | 4xl | 5xl | 6xl | md | The size of the link |