Capítulo 800 de 988

Chapter 800: <Star />

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',
      }}
    >
      <Star points={5} innerRadius={100} outerRadius={200} fill="red" />
    </AbsoluteFill>
  );
};
  • What it demonstrates: Usage pattern for <Star /> from the official docs.

Key Takeaways

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

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.