avent-ui
Version:
The best UI library for Typescript and React
15 lines (12 loc) • 809 B
JavaScript
import { jsx } from 'react/jsx-runtime';
import { forwardRef } from 'react';
import { motion } from 'framer-motion';
const HamMenuMainLink = forwardRef((props, ref) => {
const { children, className, as, style, index, slide, ...otherProps } = props;
const Component = as || 'a';
motion.create(Component);
return (jsx(motion.a, { ref: ref, style: style, className: `no-underline text-white whitespace-nowrap overflow-hidden text-ellipsis text-[42px] md:text-[50px] xl:text-[4dvw] text-center md:text-left ${className || ''}`, custom: index, variants: slide, animate: "enter", exit: "exit", initial: "initial", ...otherProps, children: children }, index));
});
HamMenuMainLink.displayName = "HamMenuMainLink";
export { HamMenuMainLink as default };
//# sourceMappingURL=hammenu-mainLink.js.map