avent-ui
Version:
The best UI library for Typescript and React
15 lines (12 loc) • 857 B
JavaScript
import { jsx } from 'react/jsx-runtime';
import { forwardRef } from 'react';
import { motion } from 'framer-motion';
const HamMenuSubLink = forwardRef((props, ref) => {
const { children, className, style, as, index, footerLinkPop, ...otherProps } = props;
const Component = as || 'a';
const MotionComponent = motion.create(Component);
return (jsx(MotionComponent, { ref: ref, style: style, className: `text-[1dvw] no-underline block text-white font-normal overflow-hidden whitespace-nowrap text-ellipsis max-w-full max-lg:text-[16px] max-sm:text-[12px] ${className}`, variants: footerLinkPop, initial: "initial", animate: "enter", exit: "exit", custom: index, ...otherProps, children: children }, index));
});
HamMenuSubLink.displayName = 'HamMenuSubLink';
export { HamMenuSubLink as default };
//# sourceMappingURL=hammenu-sublink.js.map