sigilUI

Shape

Generic SVG shape component with six variants and configurable size, fill, and stroke.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { Shape } from "@sigil-ui/components";

Usage

<Shape />

Variants

<Shape variant="diamond" />
<Shape variant="hexagon" />
<Shape variant="triangle" />
<Shape variant="circle" />
<Shape variant="cross" />
<Shape variant="pill" />

Sizes

<Shape size="sm" />
<Shape size="md" />
<Shape size="lg" />
<Shape size="xl" />

Filled

<Shape variant="hexagon" filled />
<Shape variant="circle" filled size="lg" />

Custom stroke

<Shape variant="triangle" strokeWidth={3} size="xl" />

Props

PropTypeDefaultDescription
variant"diamond" | "hexagon" | "triangle" | "circle" | "cross" | "pill""diamond"Shape type
size"sm" | "md" | "lg" | "xl""md"Shape size (16/24/32/48 px)
filledbooleanfalseFill the shape with --s-primary
strokeWidthnumber1.5Stroke width
classNamestring—Additional CSS classes