sigilUI

Pricing Table

A feature comparison pricing table with tier highlighting, badges, and category grouping.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

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

Usage

<PricingTable
  columns={[
    { name: "Free", price: "$0" },
    { name: "Pro", price: "$19", period: "mo", highlighted: true, badge: "Popular" },
  ]}
  features={features}
  categories={[{ label: "Usage", startIndex: 0 }]}
/>

Props

PropTypeDefaultDescription
columnsPricingColumn[]—Tier definitions with name, price, badge
featuresPricingFeature[]—Feature rows with boolean or string values per tier
categoriesobject[]—Optional category grouping headers

Token integration

CSS VariablePurpose
--s-primaryBadge background and highlighted column
--s-primary-mutedHighlighted column background
--s-primary-contrastBadge text
--s-successCheckmark color
--s-borderTable borders
--s-surfaceBackground
--s-surface-elevatedCategory header and hover
--s-textFeature names and values
--s-text-mutedHeaders and dash indicators
--s-font-monoPrice font
--s-radius-cardContainer radius
--s-radius-fullBadge radius
--s-shadow-smContainer shadow
--s-border-styleBorder style
--s-duration-fastHover transition