Back to Remotion

Spark

packages/docs/docs/shapes/spark.mdx

4.0.496817 B
Original Source

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

Part of the @remotion/shapes package.

Renders an SVG element containing a four-point spark.

Explorer

<Demo type="spark" />

Example

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

export const MyComposition = () => {
  return (
    <AbsoluteFill
      style={{
        backgroundColor: "white",
        justifyContent: "center",
        alignItems: "center",
      }}
    >
      <Spark
        width={240}
        height={336}
        edgeRoundness={1}
        cornerRadius={0}
        fill="#1f2a44"
      />
    </AbsoluteFill>
  );
};

Props

<ShapeOptions shape="spark" all />

See also

<ShapeSeeAlso shape="spark" />