sigilUI

Orbit Diagram

Arrange related objects around a central element.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

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

Usage

<OrbitDiagram
    center={{ label: "Sigil" }}
    nodes={[
      { label: "Tokens" },
      { label: "Components" },
      { label: "Presets" },
      { label: "CLI" },
      { label: "Docs" },
      { label: "Demos" },
    ]}
  />

Props

PropTypeDefaultDescription
center (required){ label: string; icon?: ReactNode }—Center configuration.
nodes (required)OrbitNode[]—Nodes configuration.
sizenumber—Sets the component's size.
labelsstring[]—Labels configuration.

Token integration

CSS VariablePurpose
--s-border-mutedBorder muted
--s-radius-lgRadius lg
--s-primaryPrimary
--s-backgroundBackground
--s-textText
--s-radius-fullRadius full
--s-borderBorder
--s-surfaceSurface
--s-text-mutedText muted
--s-font-monoFont mono