sigilUI

Comparison Section

Compare options in a structured page section.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

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

Usage

<ComparisonSection title="One system, fewer overrides" usLabel="Sigil" themLabel="Manual styling" features={[{ name: "Shared design tokens", us: true, them: false }, { name: "Theme switching", us: "One preset", them: "Per component" }, { name: "Accessible primitives", us: true, them: "Add separately" }]} />

Props

PropTypeDefaultDescription
labelstring—Readable label for the component.
titlestring—Heading displayed in the component.
descriptionstring—Supporting text below the heading.
usLabelstring—Us Label configuration.
themLabelstring—Them Label configuration.
features (required)ComparisonFeature[]—Features configuration.

Token integration

CSS VariablePurpose
--s-textText
--s-successSuccess
--s-text-subtleText subtle
--s-section-pySection py
--s-content-max-narrowContent max narrow
--s-page-marginPage margin
--s-borderBorder
--s-radius-cardRadius card
--s-surfaceSurface
--s-text-mutedText muted
--s-border-mutedBorder muted
--s-backgroundBackground