ProductCard
ProductCard displays summarized information about a product. They usually present a call-to-action button, as well as the product's name, price, and image.
The ProductCard
is a compound of the following:
ProductCardImage
: wraps the product's image.ProductCardContent
: wraps the content's details.ProductCardActions
: wraps the call-to-action button of the product card.
Importโ
import { ProductCard, ProductCardActions, ProductCardContent, ProductCardImage } from '@faststore/ui'
Usageโ

Vintage Top Camera
89.968.9
15% OFF
Use casesโ
Use the ProductCard
to:
- Present a product collection on the home page.
- Present product details on PLPs.
- Build a product slider that showcases multiple products at once, making it easier for visitors to browse your online store.
Propsโ
testId
string
Description
ID to find this component in testing tools (e.g.: cypress, testing-library, and jest).
Default value
store-product-card
Customizationโ
data-store-product-card
data-product-card-content
data-product-card-actions
data-store-price
data-store-badge
data-store-button
Best practicesโ
โ Do'sโ
- Use high-quality and attractive product images to grab shoppers' attention.
- Keep the product's title short.
- Use action verbs (e.g., Buy, Save, Add) in the call-to-action button.
โ Don'tsโ
- Don't use the
ProductCard
for empty state scenarios. Instead, use theSkeleton
component. - Avoid cluttering your product card with too many badges.
Accessibilityโ
- The
img
elements must have analt
attribute. - For images containing text, the
alt
description must includes the image's text.