Capítulo 797 de 988

Chapter 797: <Polygon />

Core Idea

_Part of the @remotion/shapes package.

Key Concepts

  • Explorer
  • Example
  • Props
  • See also

Code Examples

export const MyComposition = () => {
  return (
    <AbsoluteFill
      style={{
        backgroundColor: "white",
        justifyContent: "center",
        alignItems: "center",
      }}
    >
      <Polygon points={5} radius={80} />
    </AbsoluteFill>
  );
};
  • What it demonstrates: Usage pattern for <Polygon /> from the official docs.

Key Takeaways

  1. Understand explorer when working with <Polygon />.
  2. Understand example when working with <Polygon />.
  3. Understand props when working with <Polygon />.
  4. Understand see also when working with <Polygon />.

Connects To

  • Arrow: related page in the Shapes (@remotion/shapes) section.
  • Callout: related page in the Shapes (@remotion/shapes) section.
  • Circle: related page in the Shapes (@remotion/shapes) section.