UNPKG

@amsterdam/design-system-react

Version:

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

6 lines (5 loc) 487 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { clsx } from 'clsx'; import { forwardRef } from 'react'; export const TableOfContentsLink = forwardRef(({ children, className, label, ...restProps }, ref) => (_jsxs("li", { className: "ams-table-of-contents__item", children: [_jsx("a", { ...restProps, className: clsx('ams-table-of-contents__link', className), ref: ref, children: label }), children] }))); TableOfContentsLink.displayName = 'TableOfContents.Link';