Skip to main content

<Star />

import {ShapeSeeAlso, ShapeOptions} from "../../components/shapes/shapes-info"

Part of the @remotion/shapes package.

Renders an SVG element containing a star.

Explorer

Example

src/Rect.tsx
tsx
import { Star } from "@remotion/shapes";
import { AbsoluteFill } from "remotion";
 
export const MyComposition = () => {
return (
<AbsoluteFill
style={{
backgroundColor: "white",
justifyContent: "center",
alignItems: "center",
}}
>
<Star points={5} innerRadius={150} outerRadius={200} fill="red" />
</AbsoluteFill>
);
};
src/Rect.tsx
tsx
import { Star } from "@remotion/shapes";
import { AbsoluteFill } from "remotion";
 
export const MyComposition = () => {
return (
<AbsoluteFill
style={{
backgroundColor: "white",
justifyContent: "center",
alignItems: "center",
}}
>
<Star points={5} innerRadius={150} outerRadius={200} fill="red" />
</AbsoluteFill>
);
};

Props

See also