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

Create a generic SelectBox Component #24

Open
irshadjsr21 opened this issue Oct 18, 2020 · 6 comments
Open

Create a generic SelectBox Component #24

irshadjsr21 opened this issue Oct 18, 2020 · 6 comments
Assignees
Labels
bulma Bulma CSS framework good first issue Good for newcomers hacktoberfest2020 Code with GirlScript Bangalore Hacktoberfest Edition

Comments

@irshadjsr21
Copy link
Collaborator

  • Create the component as shown in the design.
  • The component should be responsive so that it looks good in both desktop and mobile view.
  • Create a generic select component which takes the following props:
    • label: Label of input
    • id : unique key
    • options: Array of Object{name: '', value: ''} Array of options to be displayed. Must contain a name and a value
    • value: The value of the option which is selected.
    • error: Error to be displayed like ‘Name is required’, Default is null.
    • onChange: value => console.log(value), A Callback function which takes the new selected option value as a parameter.
  • The select box should display the provided label prop & have the unique id.
  • The select box should display all the given options and have the value as it's the current selected option.
  • It should also display the given error if it is provided.
  • It should call the onChange function when the selection is changed.

For Design Reference Click Here

Location to save the component src->components->common->selectBox

@irshadjsr21 irshadjsr21 added good first issue Good for newcomers hacktoberfest2020 Code with GirlScript Bangalore Hacktoberfest Edition bulma Bulma CSS framework labels Oct 18, 2020
@Gautam-Arora24
Copy link

Shall I give a try to this issue?

@irshadjsr21
Copy link
Collaborator Author

Hola Coder @Gautam-Arora24 !
It's time to start working on the issue assigned to you⏳
Please raise the PR till 31st October⏱ for getting evaluated. And don't forget to register at here: https://tinyurl.com/buildwithgsblr to earn the exciting badges🎖

Feel free to post your queries in the comments thread.
Also, you can discuss at Google groups: codewithgsblr-forum@googlegroups.com or email us at girlscriptblr@gmail.com

@smilegupta
Copy link
Collaborator

@Gautam-Arora24 If stuck anywhere, Feel free to post your queries in the comments thread.
Also, you can discuss at Google groups: codewithgsblr-forum@googlegroups.com or email us at girlscriptblr@gmail.com

@Gautam-Arora24
Copy link

Gautam-Arora24 commented Oct 28, 2020

Actually I haven't started with this issue yet. Actually I was busy in a Hackathon. The Hackathon will get over on 31st October and as soon as it gets over I will start working on this issue and make a PR as soon as possible. Or If I get time in between I will surely work on this. Hope you understand

@Denisqo
Copy link

Denisqo commented Oct 28, 2020

I can do this issue if you don't have time. @Gautam-Arora24

@Gautam-Arora24
Copy link

@Denisqo I will start working on this issue from tomorrow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bulma Bulma CSS framework good first issue Good for newcomers hacktoberfest2020 Code with GirlScript Bangalore Hacktoberfest Edition
Projects
None yet
Development

No branches or pull requests

4 participants