SubcategoryLink

A link to a subcategory that automatically pushes the product's thumbnail into the product skeleton via AppModelBase.loadingProduct. The subcategory prop accepts an instance of SubcategoryModelBase or any model that implements createLinkState(). This components wraps moov-pwa/Link and supports all of its props.

Import
import SubcategoryLink from 'react-storefront/SubcategoryLink'

Props

NameTypeDefaultDescription
subcategoryobject

An instance of SubcategoryModelBase