@arolariu/components
Version:
A collection of reusable components for React applications, built as ESM & CJS modules with tree shake, minify and bundler optimizations enabled, for the lowest bundle size (import cost)! 😍
12 lines (11 loc) • 517 B
TypeScript
import * as React from "react";
import { type HTMLMotionProps, type Transition, type UseInViewOptions } from "motion/react";
interface HighlightTextProps extends HTMLMotionProps<"span"> {
text: string;
inView?: boolean;
inViewMargin?: UseInViewOptions["margin"];
inViewOnce?: boolean;
transition?: Transition;
}
declare const HighlightText: React.ForwardRefExoticComponent<Omit<HighlightTextProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
export { HighlightText, type HighlightTextProps };