@amsterdam/design-system-react
Version:
All React components from the Amsterdam Design System. Use it to compose pages in your website or application.
28 lines (27 loc) • 1.1 kB
TypeScript
/**
* @license EUPL-1.2+
* Copyright Gemeente Amsterdam
*/
import type { AnchorHTMLAttributes } from 'react';
import type { IconProps } from '../Icon';
export type StandaloneLinkProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'placeholder'> & {
/** Changes the text colour for readability on a light or dark background. */
color?: 'contrast' | 'inverse';
/**
* The icon to show before the link text.
* @default ChevronForwardIcon
*/
icon?: IconProps['svg'];
};
/**
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-standalone-link--docs Standalone Link docs at Amsterdam Design System}
*/
export declare const StandaloneLink: import("react").ForwardRefExoticComponent<Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "placeholder"> & {
/** Changes the text colour for readability on a light or dark background. */
color?: "contrast" | "inverse";
/**
* The icon to show before the link text.
* @default ChevronForwardIcon
*/
icon?: IconProps["svg"];
} & import("react").RefAttributes<HTMLAnchorElement>>;