@amsterdam/design-system-react
Version:
All React components from the Amsterdam Design System. Use it to compose pages in your website or application.
14 lines (13 loc) • 666 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { clsx } from 'clsx';
import { forwardRef } from 'react';
import { LinkListLink } from './LinkListLink';
/** A collection of related links. */
const LinkListRoot = forwardRef(({ children, className, ...restProps }, ref) => {
return (_jsx("ul", { className: clsx('ams-link-list', className), ref: ref, ...restProps, children: children }));
});
LinkListRoot.displayName = 'LinkList';
/**
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-link-list--docs Link List docs at Amsterdam Design System}
*/
export const LinkList = Object.assign(LinkListRoot, { Link: LinkListLink });