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) 655 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'; export const TopTaskLink = forwardRef(({ className, description, label, ...restProps }, ref) => (_jsxs("a", { ...restProps, className: clsx('ams-top-task-link', className), ref: ref, children: [_jsx("span", { className: "ams-top-task-link__label", children: label }), _jsx("span", { className: "ams-visually-hidden", children: "," }), _jsx("span", { className: "ams-top-task-link__description", children: description })] }))); TopTaskLink.displayName = 'TopTaskLink';