Hyperlinks between pages.
Distinguish links with different colors.
Show an icon in the link.
Different styles of links.
Display as a separate block.
next/link
Use Link
with NextJS without any configuration.
Link.Props
Attribute | Description | Type | Accepted values | Default |
---|---|---|---|---|
href | link url | string | - | - |
color | display color for link | boolean | - | false |
icon | show icon | boolean | - | false |
underline | display underline | boolean | - | false |
block | display as a separate block | boolean | - | false |
ref | forwardRef | Ref<HTMLAnchorElement | null> | - | - |
... | native props | AnchorHTMLAttributes | 'rel', 'target', ... | - |