Back to Remotion

Circle

packages/docs/docs/shapes/circle.mdx

4.0.457743 B
Original Source

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

Part of the @remotion/shapes package.

Renders an SVG element drawing a circle.

Explorer

<Demo type="circle" />

Example

tsx
import { Circle } from "@remotion/shapes";
import { AbsoluteFill } from "remotion";

export const MyComposition = () => {
  return (
    <AbsoluteFill
      style={{
        backgroundColor: "white",
        justifyContent: "center",
        alignItems: "center",
      }}
    >
      <Circle radius={100} fill="green" stroke="red" strokeWidth={1} />
    </AbsoluteFill>
  );
};

Props

<ShapeOptions shape="circle" all />

See also

<ShapeSeeAlso shape="circle"/>