# Dropdown
**Category:** Components
**Storybook:** https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-dropdown--introduction
## Variants documented in Storybook
- DropdownSize: https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-dropdown--dropdownsize
- StatusVarient: https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-dropdown--statusvarient
- SelectionTypes: https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-dropdown--selectiontypes
- DropdownButton: https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-dropdown--dropdownbutton
- DropdownOverflow: https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-dropdown--dropdownoverflow
## Framework setup
### HTML / CDN
```html
```
### React
```bash
npm install ux4g-web-components
```
```jsx
import 'ux4g-web-components/styles.css';
import 'ux4g-web-components/design-system';
```
### Angular
Update `angular.json`:
```json
{
"styles": [
"node_modules/ux4g-web-components/styles/ux4g.css",
"src/styles.css"
],
"scripts": [
"node_modules/ux4g-web-components/dist/runtime/design-system.js"
]
}
```
## Code examples
The snippets below are extracted from the Storybook canvas for Dropdown. Each example shows the rendered HTML, the equivalent React JSX, and the Angular template markup.
### 1. Dropdown Button — DropdownButton btn-text
HTML:
```html
Dropdown menu is a user interface element that reveals a hidden list of options, links or actions when you click or hover over a trigger button.
Visual demonstration of various dropdown variants including Selection, Button, and Overflow styles.
Quickly copy sizing and variant utility classes for Dropdowns.
|
Form Selection Style
ux4g-dropdown-selection
|
|
Action Button Style
ux4g-dropdown-button
|
|
Icon Overflow Style
ux4g-dropdown-overflow
|
|
Single Choice Logic
ux4g-dropdown-single
|
|
Multi Choice Logic
ux4g-dropdown-multi
|
|
Large
ux4g-dropdown-lg
|
|
Medium
ux4g-dropdown-md
|
|
Small
ux4g-dropdown-sm
|
Dropdown menu is a user interface element that reveals a hidden list of options, links or actions when you click or hover over a trigger button.
Visual demonstration of various dropdown variants including Selection, Button, and Overflow styles.
Quickly copy sizing and variant utility classes for Dropdowns.
|
Form Selection Style
ux4g-dropdown-selection
|
|
Action Button Style
ux4g-dropdown-button
|
|
Icon Overflow Style
ux4g-dropdown-overflow
|
|
Single Choice Logic
ux4g-dropdown-single
|
|
Multi Choice Logic
ux4g-dropdown-multi
|
|
Large
ux4g-dropdown-lg
|
|
Medium
ux4g-dropdown-md
|
|
Small
ux4g-dropdown-sm
|
Dropdown menu is a user interface element that reveals a hidden list of options, links or actions when you click or hover over a trigger button.
Visual demonstration of various dropdown variants including Selection, Button, and Overflow styles.
Quickly copy sizing and variant utility classes for Dropdowns.
|
Form Selection Style
ux4g-dropdown-selection
|
|
Action Button Style
ux4g-dropdown-button
|
|
Icon Overflow Style
ux4g-dropdown-overflow
|
|
Single Choice Logic
ux4g-dropdown-single
|
|
Multi Choice Logic
ux4g-dropdown-multi
|
|
Large
ux4g-dropdown-lg
|
|
Medium
ux4g-dropdown-md
|
|
Small
ux4g-dropdown-sm
|