Use the Comparison component to present side-by-side comparisons of features, specifications, or options to help users make informed decisions. You can use them to compare pricing and plans, tiers or service packages.
The Comparison component is an extended version of the Table component, meaning you can use the component with existing Table component props. The above example uses the following Comparison component-specific props:
data: The data prop is capable of handling true and false values that renders a check or x icon.
trueColor: Sets the color of icons rendered by true values.
falseColor: Sets the oclor of icons rendered by false values.
If no trueColor and falseColor props are present, the icons will take the text color:
Feature
Free
Pro
Image Carousel
Customizable CTA
Sticky CTA
Add Pricing
Icons
You can customize the default icons using the trueIcon and falseIcon props which must be an SVG string. For example: