@amsterdam/design-system-react
Version:
All React components from the Amsterdam Design System. Use it to compose pages in your website or application.
15 lines (14 loc) • 779 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
/**
* @license EUPL-1.2+
* Copyright Gemeente Amsterdam
*/
import { ChevronForwardIcon } from '@amsterdam/design-system-react-icons';
import clsx from 'clsx';
import { forwardRef } from 'react';
import { Icon } from '../Icon';
/** One link with a Link List. */
export const LinkListLink = forwardRef(({ children, className, color, icon, size, ...restProps }, ref) => {
return (_jsx("li", { children: _jsxs("a", { className: clsx('ams-link-list__link', color && `ams-link-list__link--${color}`, size && `ams-link-list__link--${size}`, className), ref: ref, ...restProps, children: [_jsx(Icon, { size: size, svg: icon ?? ChevronForwardIcon }), children] }) }));
});
LinkListLink.displayName = 'LinkList.Link';