import { Comparison } from '@hanzo/ui'
Three plans side by side, the middle one highlighted.
export function Default() {return <Comparison columns={plans} />}
The grid tracks follow the column count, not a fixed layout.
export function TwoColumns() {return <Comparison columns={plans.slice(0, 2)} />}
Every row a boolean, read as a checklist rather than a price.
export function FeatureChecklist() {const columns: ComparisonColumn[] = [{title: "Basic",items: [{ label: "API access", value: true },{ label: "SSO", value: false },{ label: "Audit log", value: false },],},{title: "Team",highlighted: true,items: [{ label: "API access", value: true },{ label: "SSO", value: true },{ label: "Audit log", value: false },],},]return <Comparison columns={columns} />}
export interface ComparisonItem {label: stringvalue: boolean | string}
export interface ComparisonColumn {title: stringitems: ComparisonItem[]/** Marks the plan the table wants to sell: a raised border and shadow. */highlighted?: boolean}
export interface ComparisonProps {columns: ComparisonColumn[]children?: never}