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

[TOGZHAN | YI | ARYAA] Drop Down Wrapper Component #9

Open
3 tasks
lillian-tran opened this issue Oct 19, 2024 · 0 comments
Open
3 tasks

[TOGZHAN | YI | ARYAA] Drop Down Wrapper Component #9

lillian-tran opened this issue Oct 19, 2024 · 0 comments
Assignees
Milestone

Comments

@lillian-tran
Copy link
Collaborator

lillian-tran commented Oct 19, 2024

Task Description:

You will create a wrapper for drop-down menus so we can generalize their use!
In “Dropdown.jsx” create a React component that when clicked will display a drop down menu. You will need to take children as a prop to allow for different drop down links.
Screenshot 2024-10-19 at 10 45 31 AM
For reference, if you look at the ‘More’ on Dillar’s current website, you can see they have drop-downs for Level 5 and Conversation. The React component should be able to take in different numbers and text for the links - this is just an example. Don’t worry too much about the styling yet.

References and Resources:

https://codeburst.io/a-quick-intro-to-reacts-props-children-cb3d2fce4891
https://medium.com/@nnpk0410/children-props-in-react-enhancing-component-composition-2e7465a1b5e3
Current Site

Acceptance Criteria:

  • Did you link the ticket/issue number with your branch using the pull request template?
  • Does the DropDown component take in a children prop that allows you to render links/elements within the component tags?
  • Can the drop down be opened and closed?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants