sigilUI

Voronoi Bento

Arrange content in a geometric, irregular grid.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { VoronoiBento, VoronoiCell } from "@sigil-ui/components";

Usage

<VoronoiBento seeds={3} height={260} className="w-full">
  <VoronoiCell>Design</VoronoiCell>
  <VoronoiCell>Build</VoronoiCell>
  <VoronoiCell>Ship</VoronoiCell>
</VoronoiBento>

Sub-components

This component includes the following parts:

  • <VoronoiCell>

Props

PropTypeDefaultDescription
seedsnumber8Number of Voronoi cells.
gapnumber8Gutter between cells in px. Falls back to --s-bento-gap.
roundednumber0Border-radius on the outer container.
widthnumber—Container width in px. Uses 100% when omitted.
heightnumber500Container height in px.

Token integration

CSS VariablePurpose
--s-surfaceSurface
--s-bg-elevatedBg elevated
--s-borderBorder