Create new Dropdown-Button component
See original GitHub issueFeature Request
Description
Create a new dropdown-style button component with two features:
- one for a split-button (2 targets: regular button plus a dropdown icon-button that reveals the menu)
- one for a dropdown-button (1 target: clicking button reveals the menu)
Button should also contain a prop for isBlock
to stretch to fill 100% of container’s width.
Additional details posted here: https://zpl.io/a3gPoXy
Additional Context / Screenshots
screenshots:
-
Split-Button example:
-
Dropdown-Button example:
Issue Analytics
- State:
- Created 5 years ago
- Comments:15 (12 by maintainers)
Top Results From Across the Web
React Dropdown Tutorial for Beginners: Create a ... - Fullstack.io
In this article, we'll create a basic React dropdown menu, first as a functional component, then as a class component.
Read more >How to create a React Dropdown - Robin Wieruch
However, here you will learn how to create a dropdown component in React step by step. First, we need a HTML button element...
Read more >Getting started with Angular DropDownButton component
This section explains how to create a simple DropDownButton and demonstrate the basic usage of the DropDownButton component in an Angular environment.
Read more >Getting Started with DropDownButton - DevExtreme
Create a DropDownButton · Configure the Button · Populate the Drop-Down Menu · Handle the Menu Item Click Event · Split the Button...
Read more >Customize a reusable React dropdown menu component
The visual structure of a dropdown menu component ... A dropdown menu consists of four basic components: the header wrapping, header title, list ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@StephenEsser @nickpith - I can assist when it comes to the use cases of when to choose one component vs. the other. I would also refer you to our Cerner Design Standards: Buttons and Drop-down for additional information.
Dropdown Buttons:
Split Buttons:
Drop-downs:
I will also add to @neilpfeiffer 's comment above. Using a Select control to create the drop-down button would violate accessibility guidelines. The control must announce itself as a button for screenreaders. The use of semantic code is very important for all assistive technologies.