You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
wych.dev/src/components/3d/renderedsection.tsx

34 lines
813 B

"use client";
import React, { ReactNode, HTMLProps } from "react";
import Renderer, { CurveProps } from "@/components/3d/renderer";
import { cn } from "@/lib/utils";
const RenderedSection: React.FC<
HTMLProps<HTMLElement> & {
children?: ReactNode;
evenly?: boolean;
curve: CurveProps;
curveClassname?: string;
}
> = ({
children,
className,
curveClassname,
evenly = false,
curve,
...props
}) => {
return (
<div className="flex w-full h-full flex-col items-center align-middle relative">
<div className={cn("absolute", curveClassname)}>
<Renderer {...curve} />
</div>
<section className={cn("relative", className)} {...props}>
{children}
</section>
</div>
);
};
export default RenderedSection;