Last updated

Link

Import

import { Link } from '@redocly/theme/components/Link/Link';

Properties

PropType Description
tostringREQUIRED URL or path to navigate to.
targetenum (_self | _blank)Specifies where to open the linked document. Defaults to _self.
externalbooleanIf true, indicates that the link points to an external resource.
classNamestringCustom CSS class name(s) for styling.
styleReact.CSSPropertiesInline styles applied to the link.
innerRefReact.Ref<HTMLAnchorElement>Ref forwarded to the <a> element, useful for accessing DOM directly.
languageInsensitivebooleanIf true, disables automatic language prefixing for localized routes.
onClick() => voidFunction to call when the link is clicked.
[key: string]unknownAllows passing additional arbitrary props.

Resources