How do I make custom paths fill entire path
I have a custom shape, and when I need to export it, I need to fill the entire screen width. However, it’s not happening
export const RiveFooter = () => {
const { RiveComponent } = useRive({
src: '/rive/footer_animation.riv',
autoplay: true,
autoBind: true,
layout: new Layout({
fit: Fit.Fill, // FitWidth simpley doesn't render anything
alignment: Alignment.BottomCenter,
}),
});
return <RiveComponent />;
};
<div className="relative h-[170px] w-full text-center text-sm text-dark-500">
<RiveFooter />
</div>