Shapes

Line

A straight line from x1, y1 to x2, y2 in its Svg (drawn by its stroke).

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

Reference

A straight line from x1, y1 to x2, y2 in its Svg (drawn by its stroke).

Holds: nothing. Not in an Email.

Props:

  • x1: a number (default 0)
  • y1: a number (default 0)
  • x2: a number (default 0)
  • y2: a number (default 0)

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)