UNPKG

@amsterdam/design-system-react

Version:

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

10 lines (9 loc) 538 B
import { jsx as _jsx } from "react/jsx-runtime"; /** * @license EUPL-1.2+ * Copyright Gemeente Amsterdam */ import clsx from 'clsx'; import { forwardRef } from 'react'; export const Link = forwardRef(({ children, className, color, variant = 'standalone', ...restProps }, ref) => (_jsx("a", { ...restProps, className: clsx('ams-link', color && `ams-link--${color}`, variant === 'inline' && 'ams-link--inline', variant === 'standalone' && 'ams-link--standalone', className), ref: ref, children: children }))); Link.displayName = 'Link';