@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) • 720 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
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 = ChevronForwardIcon, 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 }), children] }) }));
});
LinkListLink.displayName = 'LinkList.Link';