Last updated
import { Link } from '@redocly/theme/components/Link/Link';| Prop | Type | Description |
|---|
to | string | REQUIRED URL or path to navigate to. |
target | enum (_self | _blank) | Specifies where to open the linked document. Defaults to _self. |
external | boolean | If true, indicates that the link points to an external resource. |
className | string | Custom CSS class name(s) for styling. |
style | React.CSSProperties | Inline styles applied to the link. |
innerRef | React.Ref<HTMLAnchorElement> | Ref forwarded to the <a> element, useful for accessing DOM directly. |
languageInsensitive | boolean | If true, disables automatic language prefixing for localized routes. |
onClick | () => void | Function to call when the link is clicked. |
[key: string] | unknown | Allows passing additional arbitrary props. |