Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

489 B
Raw Blame
import {
  forwardRef,
  type ComponentPropsWithoutRef,
  type ElementRef,
} from "react";

type ProgressAnimationProps<T extends Record<string, unknown> = {}> = {
  children: React.ReactNode;
} & ComponentPropsWithoutRef<"div"> &
  T;

export const createProgressAnimation = <T extends Record<string, unknown>>() =>
  forwardRef<ElementRef<"div">, ProgressAnimationProps<T>>((props, ref) => {
    // Implementation is located in private-src
    return <div ref={ref} {...props} />;
  });