Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swatch component #13

Open
Frodigo opened this issue Oct 21, 2021 · 0 comments
Open

Swatch component #13

Frodigo opened this issue Oct 21, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@Frodigo
Copy link
Owner

Frodigo commented Oct 21, 2021

Problem

The Swatches component is necessary to build product pages but is not implemented yet

Solution

Add Swatch component as an Atom

User story

  1. As a product owner, I want to
    1. see the Swatch component in Storybook implemented as Atom
    2. have the possibility to add props to the Stock component
      1. type - {text|color} - type of swatch
      2. value: {string} swatch value
      3. label {string} swatch label. If not specified, the same as the value prop
      4. isSelected {bool} - is swatch selected or not
  2. As a user:
    1. I can see the Swatch component
    2. Select swatch by clicking on it

Design/Screenshots

Screen Shot 2021-10-21 at 07 40 11

@Frodigo Frodigo added the enhancement New feature or request label Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant