Display a menu which allows the user to select from a set of actions/functions that get triggered by a button.

Examples of Dropdowns
Default dropdown
Dropdown with Header
Nested dropdown
Dropdown with a disabled option
Right sided dropdown

For creating these system design components, I was inspired by shadcn/ui. Please check them out.
P.S. - You can also see the code samples attached with the examples. For a detailed view, you can see the code on github.