Link
freeLink gives anchors product focus styling and safe navigation behavior.
Installation
Add this component with the NateUI CLI.
Examples
External
Custom Styles
Router Adapter
API
Link renders an anchor by default. Use render when the anchor props should be handed to a router component instead.
| Prop | Description | Type | Default |
|---|---|---|---|
children | Link label or custom inline content. | ReactNode | - |
className | Class names applied to the rendered link. The component always adds its focus-visible ring classes. | string | - |
href | Destination URL. Required and forwarded to the rendered element. | string | - |
ref | Ref forwarded to the rendered anchor or adapter component. | Ref<HTMLAnchorElement> | - |
rel | Relationship attribute. When omitted with target="_blank", Link supplies noopener noreferrer. | string | Auto for blank targets |
render | Element or component used instead of the default <a> tag. Receives the resolved link props. | LinkRenderer | - |
target | Native anchor target, such as _blank. | HTMLAttributeAnchorTarget | - |
...nativeProps | Native anchor props forwarded to the rendered element, excluding href. | NativeAnchorProps | - |