UNPKG

avent-ui

Version:

The best UI library for Typescript and React

14 lines (11 loc) 546 B
import { jsx } from 'react/jsx-runtime'; import { forwardRef } from 'react'; import { ButtonProvider } from './hammenu-provider.js'; const HamMenu = forwardRef((props, ref) => { const { children, as, className, style, ...otherProps } = props; const Component = as || 'section'; return (jsx(ButtonProvider, { children: jsx(Component, { className: `${className}`, ref: ref, ...otherProps, style: style, children: children }) })); }); HamMenu.displayName = "HamMenu"; export { HamMenu as default }; //# sourceMappingURL=hammenu.js.map