An attribute of the configurable product that the customer must choose to add the configurable product to the cart. An example of an attribute would be size for clothing.
import { DaffConfigurableProductAttribute } from '@daffodil/product-configurable'
interface DaffConfigurableProductAttribute {
code: string
label: string
values: DaffConfigurableProductOptionValue[]
}
Name | Type | Description |
---|---|---|
code | string | The identifier for the attribute type. |
label | string | A label for the attribute type. |
values | DaffConfigurableProductOptionValue[] | The possible attribute options that a customer can choose. |