Skip to content

ProductSpecifications

A product's specifications, a table per group. Rows that say nothing — an empty text or list, a zero quantity — are dropped, and so is a group left without rows.

import { ProductSpecifications } from "@evolve-storefront/feature-product/product-specifications";

Renders inside ProductListingProvider.

Preview

DefaultOpen in Storybook ↗

Usage

<ProductSpecifications groups={variant.specifications} locale={locale} headingLevel={3} />;

Props

PropTypeDescription
groupsreadonly SpecificationGroup[]
localestring
headingLevel?HeadingLevel

The level of each group's heading.

Any other props go to the root element, like on a plain HTML element.

Change the layout

Pass children to ProductSpecifications to arrange its parts yourself. Every part is exported from @evolve-storefront/feature-product/product-specifications.

ProductSpecificationGroupOne group: its heading and a table of its rows, as given.
PropTypeDescription
groupSpecificationGroup
localestring
headingLevel?HeadingLevel
ProductSpecificationRowOne attribute: its label, its value and, where it has one, its explanation.
PropTypeDescription
attributeSpecificationAttribute
localestring