Shapes

Path

A shape drawn by an SVG path (d), in its Svg. The Path element's props, styles and an example, in Hyper Elements.

import { Path } from "@hyper-elements/react";

Reference

A shape drawn by an SVG path (d), in its Svg.

Holds: nothing. Not in an Email.

Props:

  • d: text (required). SVG path data (“M0 0 L40 0 L20 30 Z”).

style:

  • fill: color (default "#000000", Background). Its inside (“transparent” for none).
  • stroke: color (Border). Its outline’s color.
  • strokeWidth: a number from 0 (Border)
  • opacity: a number from 0 to 1 (Effects)