UNPKG

@amsterdam/design-system-react

Version:

All React components from the Amsterdam Design System. Use it to compose pages in your website or application.

27 lines (26 loc) 1.09 kB
/** * @license EUPL-1.2+ * Copyright Gemeente Amsterdam */ import type { AnchorHTMLAttributes, ComponentType, PropsWithChildren } from 'react'; import type { IconProps } from '../Icon'; export type TabNavigationLinkProps = { /** An icon to display before the link text. */ icon?: IconProps['svg']; /** * The React component to use for the link. * Refs are not forwarded to custom link components. */ linkComponent?: ComponentType<AnchorHTMLAttributes<HTMLAnchorElement>>; } & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>; export declare const TabNavigationLink: import("react").ForwardRefExoticComponent<{ /** An icon to display before the link text. */ icon?: IconProps["svg"]; /** * The React component to use for the link. * Refs are not forwarded to custom link components. */ linkComponent?: ComponentType<AnchorHTMLAttributes<HTMLAnchorElement>>; } & AnchorHTMLAttributes<HTMLAnchorElement> & { children?: import("react").ReactNode | undefined; } & import("react").RefAttributes<HTMLAnchorElement>>;