ValyroUI Русская версия

Comparison Table

Product comparison. Pro · Landing pages and brand › Pricing and trust

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add comparison-table
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { ComparisonTable } from 'valyro-ui-pro';

Props

PropTypeDefault
eyebrowReactNodeSmall label above the title.
titleReactNodeSection heading; also the accessible name of the section and the table.
subtitleReactNodeSupporting paragraph under the title.
products *ComparisonProduct[]Columns, left to right: name, description and an optional action in the header cell.
groups *ComparisonGroup[]Feature rows, each group under an optional title row spanning the table.
labelstring'Product comparison'Accessible name of the table when there is no title.
labelsPartial<ComparisonTableLabels>Overrides for the built-in English text; keys left out keep their defaults.
stickyHeaderOffsetnumber | string0Distance from the top of the viewport at which the product header sticks, e.g. the height of a fixed navbar. The header sticks whenever the table fits without horizontal scrolling and no ancestor clips overflow (overflow: hidden | auto).
headingLevel1 | 2 | 3 | 4 | 5 | 62Level of the section title (h1–h6).

Related components

Previous: Pricing Table · Next: Testimonials · All Landing pages and brand