@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.13 kB
TypeScript
/**
* @license EUPL-1.2+
* Copyright Gemeente Amsterdam
*/
import type { AnchorHTMLAttributes, PropsWithChildren } from 'react';
import type { IconProps } from '../Icon';
export type MenuLinkProps = {
/**
* Changes the text colour for readability on a light or dark background.
* @deprecated The menu has a dark background now, so this is no longer needed.
*/
color?: 'contrast' | 'inverse';
/** The icon to display for the menu icon. Use the filled variant. */
icon: IconProps['svg'];
} & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
export declare const MenuLink: import("react").ForwardRefExoticComponent<{
/**
* Changes the text colour for readability on a light or dark background.
* @deprecated The menu has a dark background now, so this is no longer needed.
*/
color?: "contrast" | "inverse";
/** The icon to display for the menu icon. Use the filled variant. */
icon: IconProps["svg"];
} & AnchorHTMLAttributes<HTMLAnchorElement> & {
children?: import("react").ReactNode | undefined;
} & import("react").RefAttributes<HTMLAnchorElement>>;