This repo contains UI components based on Material UI for use in web-based retail applications. These components can be used when building a responsive, themed, and accessible web-based retail application. All components have multi-language/translation support and can be themed. The repo is open source and will remain so.
npm i @ditus/react-web-retail
To view the components, type:
npm i
npm run storybook
The following components are included in the package. For demo's and to view components in actual size, run storybook as indicated above. Some components are internal and are not listed here since they are not exposed. If you don't see a component that you believe should be here or you would like to see an internal component made external, submit a request and we will respond promptly.
The Add to Cart component displays a button that allows customers to add a product to their shopping cart.
The Brand Link component displays the brand name of a product.
It can also be displayed as a link, if there are many products of the same brand:
The Cart Empty component displays a message stating that the customers shopping cart is empty.
The Cart Icon component displays a shopping cart icon that can be clicked to redirect the customer to their shopping cart.
The Cart Icon with a badge specifying the number of products in the shopping cart:
The Choking Hazard component displays a warning on products that contain small parts and could be harmful to younger children.
The Featured Product Attributes component displays a subset of product attributes that consumers would be more interested in.
The Featured Taxonomies component displays related taxonomies used to categories products. Customers would usually click a taxonomy to view all products within that category.
The Featured Taxonomy component displays a single category or taxonomy of products, such as dog toys or cat food.
When the mouse is hovered over the component, it appears as:
The Low Stock component displays a message when a product is low on quantity.
The Price component displays the price of a product.
The Product component displays a product's information and is used in search results and lists of products.
The Product Attribute component displays a single name/value pair representing an attribute of the product, such as the product's color or dimensions.
The Product Attributes component displays a list of product attributes.
The Product Image component displays a single image of a product.
The Rating Bar component displays a product star rating and when the user presses or hovers over the component, a popup appears displaying more information on the ratings of the product.
The Rating Linear Progress component displays a styled Linear Progress bar that displays the rating for a product.
The Rating Summary component displays the ratings for a product broken down by star rating, including the average rating and total number of ratings.
The Rating Summary Bar component displays the ratings for a single star (1 through 5) on the Rating Summary component.
The Save Coupon component displays a message indicating how much the consumer will save with a coupon that is automatically applied at checkout.
The Sponsored component displays the word 'sponsored' and is meant to be displayed when a product is promoted for advertising reasons.
The Swatch component displays a variant color or material for a product using a solid color or image.
This is an example of a solid color:
This is an example of an image:
The Swatches component displays one or more swatches.
The Wish List Icon component displays a wish list icon that can be clicked to redirect the customer to their wish list.
The Wish List Icon with a badge specifying the number of products in the wish list:
See the open issues for a list of proposed features (and known issues).
This project is licensed under the terms of the MIT license.