Skip to content
PixiKit

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
NameTypeDefaultDescription
columnsstring[]["Free", "Pro", "Team"]Plan names, one per value column.
groupsComparisonTableGroup[]SAMPLEGroups of feature rows. A sample set shows when left out.
featuresLabelstring"Features"Heading of the feature column.
widthnumber1200Widest the table grows, in px.
rowHeightnumber55Row height, in px.
valueColumnWidthnumber117Width of each plan column, in px.
cellPaddingXnumber20Space left and right inside each cell, in px.
radiusnumber20Corner radius of each group box, in px.
groupGapnumber20Space above and below each group heading, in px.
fontSizenumber15Text size, in px.
borderColorstring"var(--border)"Line colour.
textColorstring"var(--foreground)"Text colour.
mutedColorstring"var(--muted-foreground)"Colour of the group headings.
yesColorstring"#22c55e"Colour of a tick.
noColorstring"#ef4444"Colour of a cross.
iconSizenumber24Tick and cross size, in px.
iconStyle"boxed" | "plain""boxed"`boxed` sets each mark in a small tinted square, `plain` shows the mark alone.
headerDotsbooleantrueSmall dots at the four corners of the header row.
dotSizenumber3Dot size, in px.
titleLinesbooleantrueFading lines on both sides of each group heading.
highlightColumnnumber-1Index of a plan column to tint; -1 tints none.
highlightOnHoverbooleanfalseTints the row under the pointer.
highlightColorstring"var(--muted)"Tint colour for the highlighted column and the hovered row.
stripedbooleanfalseTints every other row.
stickyHeaderbooleanfalseKeeps the header row in view while the page scrolls.
ariaLabelstring"Plan comparison"Name of the table, read by screen readers.
classNamestring""
styleCSSPropertiesNone

More data components in Pro

View all

Related