# CollectedProduct

# Most common usage scenario


This section is not fully documented yet. We are doing our best to make our documentation a good and complete source of knowledge about Storefront UI. If you would like to help us, please don't hesitate to contribute to our docs. You can read more about it here.

# Props

  • image

    • Product image. It should be an url of the product
    • type: string
    • defaultValue: "assets/storybook/product_thumb.png"
  • title

    • Product title
    • type: string
    • required: true
  • regularPrice

    • Product regular price
    • type: number|string
    • defaultValue: null
  • specialPrice

    • Product special price
    • type: number|string
    • defaultValue: null
  • qty

    • Selected quantity
    • type: string
    • defaultValue: "1"
  • stock

    • Stock quantity of product
    • type: number
    • defaultValue: 1

# Slots

  • remove

    • bindings: removeHandler
  • image

    • bindings: image, title
  • input

  • title

    • bindings: title
  • price

    • bindings: specialPrice, regularPrice
  • configuration

  • actions

# Events

  • click:remove

  • input

# CSS modifiers


# SCSS variables

$collected-product-max-width: 350px !default;
$collected-product-box-shadow--hover: 0px 4px 35px rgba(168, 172, 176, 0.19) !default;
$collected-product__remove-size: 0.875rem !default;
$collected-product__remove-size-desktop: 1.625rem !default;
$collected-product__remove-background: $c-gray-secondary !default;
$collected-product__remove-background--hover: $c-dark-secondary !default;
$collected-product__select-quantity-width: 3.125rem !default;
$collected-product__select-quantity-height: 1.875rem !default;

You can override SCSS variable values bound to this component in sfui.scss in the root of your project.

# Partials

If you want to customize this component even more you can use its partials for limitless customization.

<template lang="html" src="@storefront-ui/vue/src/components/organisms/SfCollectedProduct/SfCollectedProduct.html"></template>
<script src="@storefront-ui/vue/src/components/organisms/SfCollectedProduct/SfCollectedProduct.js"></script>
<style lang="scss">
@import "~@storefront-ui/shared/styles/components/SfCollectedProduct.scss";

You can read about using component partials here

# Play with this component

See all available configurations and play with this component on Storybook.