@amsterdam/design-system-react
Version:
All React components from the Amsterdam Design System. Use it to compose pages in your website or application.
13 lines (12 loc) • 615 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
/**
* @license EUPL-1.2+
* Copyright Gemeente Amsterdam
*/
import clsx from 'clsx';
import { forwardRef } from 'react';
import { MegaMenuListCategory } from './MegaMenuListCategory';
const MegaMenuRoot = forwardRef(({ children, className, ...restProps }, ref) => (_jsx("div", { ...restProps, className: clsx('ams-mega-menu', className), ref: ref, children: children })));
MegaMenuRoot.displayName = 'MegaMenu';
/** @deprecated Use child components in Header instead. */
export const MegaMenu = Object.assign(MegaMenuRoot, { ListCategory: MegaMenuListCategory });