Polygon

An SVG polygon element.

Import

import { Polygon } from "@tarve/core";

Usage

Polygon.tsx
import { Polygon, Svg } from "@tarve/core";

<Svg viewBox="0 0 24 24" size={32} fill="#fbbf24" stroke="none">
  <Polygon points="12 2 15 9 22 9 16.5 13.5 18.5 21 12 16.5 5.5 21 7.5 13.5 2 9 9 9" />
</Svg>

Props

Polygon has no props of its own beyond the inherited and common props below.

Inherited from PolygonProps 1 props
PropTypeDefault
points required string—