UNPKG

@amsterdam/design-system-react

Version:

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

11 lines (10 loc) 548 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; /** * @license EUPL-1.2+ * Copyright Gemeente Amsterdam */ import clsx from 'clsx'; import { forwardRef } from 'react'; import { Icon } from '../Icon'; export const PageMenuLink = forwardRef(({ children, className, icon, ...restProps }, ref) => (_jsx("li", { children: _jsxs("a", { ...restProps, className: clsx('ams-page-menu__link', className), ref: ref, children: [children, icon && _jsx(Icon, { size: "small", svg: icon })] }) }))); PageMenuLink.displayName = 'PageMenu.Link';