Comparison Table
A plan comparison table. A header of plan names sits over grouped, rounded boxes of feature rows, each cell a tick, a cross or a short value.
pixikit.com/docs/components/comparison-table
Customize
Width1200px
Row height55px
Value column width117px
Cell padding x20px
Radius20px
Group gap20px
Font size15.0px
Border color
Text color
Muted color
Yes color
No color
Icon size24px
Icon style
Header dots
Dot size3px
Title lines
Highlight column-1
Highlight on hover
Highlight color
Striped
Sticky header
Props
28| Name | Type | Default | Description |
|---|---|---|---|
columns | string[] | ["Free", "Pro", "Team"] | Plan names, one per value column. |
groups | ComparisonTableGroup[] | SAMPLE | Groups of feature rows. A sample set shows when left out. |
featuresLabel | string | "Features" | Heading of the feature column. |
width | number | 1200 | Widest the table grows, in px. |
rowHeight | number | 55 | Row height, in px. |
valueColumnWidth | number | 117 | Width of each plan column, in px. |
cellPaddingX | number | 20 | Space left and right inside each cell, in px. |
radius | number | 20 | Corner radius of each group box, in px. |
groupGap | number | 20 | Space above and below each group heading, in px. |
fontSize | number | 15 | Text size, in px. |
borderColor | string | "var(--border)" | Line colour. |
textColor | string | "var(--foreground)" | Text colour. |
mutedColor | string | "var(--muted-foreground)" | Colour of the group headings. |
yesColor | string | "#22c55e" | Colour of a tick. |
noColor | string | "#ef4444" | Colour of a cross. |
iconSize | number | 24 | Tick and cross size, in px. |
iconStyle | "boxed" | "plain" | "boxed" | `boxed` sets each mark in a small tinted square, `plain` shows the mark alone. |
headerDots | boolean | true | Small dots at the four corners of the header row. |
dotSize | number | 3 | Dot size, in px. |
titleLines | boolean | true | Fading lines on both sides of each group heading. |
highlightColumn | number | -1 | Index of a plan column to tint; -1 tints none. |
highlightOnHover | boolean | false | Tints the row under the pointer. |
highlightColor | string | "var(--muted)" | Tint colour for the highlighted column and the hovered row. |
striped | boolean | false | Tints every other row. |
stickyHeader | boolean | false | Keeps the header row in view while the page scrolls. |
ariaLabel | string | "Plan comparison" | Name of the table, read by screen readers. |
className | string | "" | |
style | CSSProperties | None |