2016-01-12 00:43:11 +03:00
---
layout: docs
title: Menus
group: material-design
---
2016-01-12 02:13:01 +03:00
Bootstrap users know these as [dropdowns ]({{ site.baseurl }}/components/dropdowns/ ), but these are also known as menus in the [Material Design specification ](https://www.google.com/design/spec/components/menus.html#menus-specs ).
2016-01-12 00:43:11 +03:00
## Contents
* Will be replaced with the ToC, excluding the "Contents" header
{:toc}
## Styles
{% example html %}
2016-01-12 02:13:01 +03:00
<!-- icon with buttons -->
2016-01-12 00:43:11 +03:00
< div class = "dropdown" >
2016-01-13 02:49:53 +03:00
< button class = "btn mdb-btn-icon dropdown-toggle" type = "button" id = "ex1" data-toggle = "dropdown" aria-haspopup = "true" aria-expanded = "false" >
2016-01-12 00:43:11 +03:00
< i class = "material-icons" > more_vert< / i >
< / button >
2016-01-12 02:13:01 +03:00
An < code > .mdb-btn-icon< / code > with menu buttons
< div class = "dropdown-menu" aria-labelledby = "ex1" >
2016-01-12 00:43:11 +03:00
< button class = "dropdown-item" type = "button" > Action< / button >
2016-01-12 02:13:01 +03:00
< button class = "dropdown-item disabled" type = "button" > Another action< / button >
2016-01-12 00:43:11 +03:00
< button class = "dropdown-item" type = "button" > Another action< / button >
< / div >
< / div >
2016-01-12 02:13:01 +03:00
<!-- icon with links -->
< div class = "dropdown" >
2016-01-13 02:49:53 +03:00
< button class = "btn mdb-btn-icon dropdown-toggle" type = "button" id = "ex2" data-toggle = "dropdown" aria-haspopup = "true" aria-expanded = "false" >
2016-01-12 02:13:01 +03:00
< i class = "material-icons" > more_vert< / i >
< / button >
An < code > .mdb-btn-icon< / code > with menu links
< div class = "dropdown-menu" aria-labelledby = "ex2" >
< a class = "dropdown-item" href = "#" > Regular link< / a >
< a class = "dropdown-item disabled" href = "#" > Disabled link< / a >
< a class = "dropdown-item" href = "#" > Another link< / a >
< / div >
< / div >
2016-01-12 00:43:11 +03:00
<!-- fab - sm -->
< div class = "dropdown" >
2016-01-13 02:49:53 +03:00
< button class = "btn mdb-btn-fab mdb-btn-fab-sm dropdown-toggle" type = "button" id = "ex3" data-toggle = "dropdown" aria-haspopup = "true" aria-expanded = "false" >
2016-01-12 00:43:11 +03:00
< i class = "material-icons" > more_vert< / i >
< / button >
An < code > .mdb-btn-fab-sm< / code >
2016-01-12 02:13:01 +03:00
< div class = "dropdown-menu" aria-labelledby = "ex3" >
2016-01-12 00:43:11 +03:00
< button class = "dropdown-item" type = "button" > Action< / button >
< button class = "dropdown-item" type = "button" > Another action< / button >
< / div >
< / div >
<!-- fab -->
< div class = "dropdown" >
2016-01-13 02:49:53 +03:00
< button class = "btn mdb-btn-fab dropdown-toggle" type = "button" id = "ex4" data-toggle = "dropdown" aria-haspopup = "true" aria-expanded = "false" >
2016-01-12 00:43:11 +03:00
< i class = "material-icons" > more_vert< / i >
< / button >
An < code > .mdb-btn-fab< / code >
2016-01-12 02:13:01 +03:00
< div class = "dropdown-menu" aria-labelledby = "ex4" >
2016-01-12 00:43:11 +03:00
< button class = "dropdown-item" type = "button" > Action< / button >
< button class = "dropdown-item" type = "button" > Another action< / button >
< / div >
< / div >
2016-01-12 02:13:01 +03:00
<!-- default btn -->
< div class = "dropdown open" >
2016-01-13 02:49:53 +03:00
< button class = "btn dropdown-toggle" type = "button" id = "buttonMenu1" data-toggle = "dropdown" aria-haspopup = "true" aria-expanded = "false" >
2016-01-12 02:13:01 +03:00
Dropdown
< / button >
< div class = "dropdown-menu" aria-labelledby = "buttonMenu1" >
< a class = "dropdown-item" href = "#" > Action< / a >
< a class = "dropdown-item" href = "#" > Another action< / a >
< a class = "dropdown-item" href = "#" > Something else here< / a >
< / div >
< / div >
2016-01-12 00:43:11 +03:00
{% endexample %}
## Alignment
### Lower left side
{% example html %}
< div class = "dropdown open" >
2016-01-13 02:49:53 +03:00
< button class = "btn mdb-btn-icon dropdown-toggle" type = "button" id = "ll1" data-toggle = "dropdown" aria-haspopup = "true" aria-expanded = "false" >
2016-01-12 00:43:11 +03:00
< i class = "material-icons" > more_vert< / i >
< / button >
2016-01-12 02:13:01 +03:00
< div class = "dropdown-menu" aria-labelledby = "ll1" >
2016-01-12 00:43:11 +03:00
< button class = "dropdown-item" type = "button" > Action< / button >
< button class = "dropdown-item" type = "button" > Another action< / button >
2016-01-12 02:13:01 +03:00
< button class = "dropdown-item disabled" type = "button" > Disabled action< / button >
2016-01-12 00:43:11 +03:00
< div class = "dropdown-divider" > < / div >
< a class = "dropdown-item" href = "#" > Separated link< / a >
< / div >
< / div >
{% endexample %}
### Lower right side
{% example html %}
< div class = "dropdown open pull-xs-right" >
2016-01-13 02:49:53 +03:00
< button class = "btn mdb-btn-icon dropdown-toggle" type = "button" id = "lr1" data-toggle = "dropdown" aria-haspopup = "true" aria-expanded = "false" >
2016-01-12 00:43:11 +03:00
< i class = "material-icons" > more_vert< / i >
< / button >
2016-01-12 02:13:01 +03:00
< div class = "dropdown-menu dropdown-menu-right" aria-labelledby = "lr1" >
2016-01-12 00:43:11 +03:00
< button class = "dropdown-item" type = "button" > Action< / button >
< button class = "dropdown-item" type = "button" > Another action< / button >
2016-01-12 02:13:01 +03:00
< button class = "dropdown-item disabled" type = "button" > Disabled action< / button >
2016-01-12 00:43:11 +03:00
< div class = "dropdown-divider" > < / div >
< a class = "dropdown-item" href = "#" > Separated link< / a >
< / div >
< / div >
{% endexample %}
### Top left side
{% example html %}
< div class = "dropdown open" >
2016-01-13 02:49:53 +03:00
< button class = "btn mdb-btn-icon dropdown-toggle" type = "button" id = "tl1" data-toggle = "dropdown" aria-haspopup = "true" aria-expanded = "false" >
2016-01-12 00:43:11 +03:00
< i class = "material-icons" > more_vert< / i >
< / button >
2016-01-12 02:13:01 +03:00
< div class = "dropdown-menu dropdown-menu-top-left" aria-labelledby = "tl1" >
2016-01-12 00:43:11 +03:00
< button class = "dropdown-item" type = "button" > Action< / button >
< button class = "dropdown-item" type = "button" > Another action< / button >
2016-01-12 02:13:01 +03:00
< button class = "dropdown-item disabled" type = "button" > Disabled action< / button >
2016-01-12 00:43:11 +03:00
< div class = "dropdown-divider" > < / div >
< a class = "dropdown-item" href = "#" > Separated link< / a >
< / div >
< / div >
{% endexample %}
### Top right side
{% example html %}
< div class = "dropdown open pull-xs-right" >
2016-01-13 02:49:53 +03:00
< button class = "btn mdb-btn-icon dropdown-toggle" type = "button" id = "tr1" data-toggle = "dropdown" aria-haspopup = "true" aria-expanded = "false" >
2016-01-12 00:43:11 +03:00
< i class = "material-icons" > more_vert< / i >
< / button >
2016-01-12 02:13:01 +03:00
< div class = "dropdown-menu dropdown-menu-top-right" aria-labelledby = "tr1" >
2016-01-12 00:43:11 +03:00
< button class = "dropdown-item" type = "button" > Action< / button >
< button class = "dropdown-item" type = "button" > Another action< / button >
2016-01-12 02:13:01 +03:00
< button class = "dropdown-item disabled" type = "button" > Disabled action< / button >
2016-01-12 00:43:11 +03:00
< div class = "dropdown-divider" > < / div >
< a class = "dropdown-item" href = "#" > Separated link< / a >
< / div >
< / div >
{% endexample %}
## Widths
### Minimum width
{% example html %}
< div class = "dropdown open pull-xs-right" >
2016-01-13 02:49:53 +03:00
< button class = "btn mdb-btn-icon dropdown-toggle" type = "button" id = "mw1" data-toggle = "dropdown" aria-haspopup = "true" aria-expanded = "false" >
2016-01-12 00:43:11 +03:00
< i class = "material-icons" > more_vert< / i >
< / button >
2016-01-12 02:13:01 +03:00
< div class = "dropdown-menu dropdown-menu-right" aria-labelledby = "mw1" >
2016-01-12 00:43:11 +03:00
< button class = "dropdown-item" type = "button" > A< / button >
< button class = "dropdown-item" type = "button" > B< / button >
< / div >
< / div >
{% endexample %}
### Maximum width
{% example html %}
< div class = "dropdown open pull-xs-right" >
2016-01-13 02:49:53 +03:00
< button class = "btn mdb-btn-icon dropdown-toggle" type = "button" id = "mw2" data-toggle = "dropdown" aria-haspopup = "true" aria-expanded = "false" >
2016-01-12 00:43:11 +03:00
< i class = "material-icons" > more_vert< / i >
< / button >
2016-01-12 02:13:01 +03:00
< div class = "dropdown-menu dropdown-menu-right" aria-labelledby = "mw2" >
2016-01-12 00:43:11 +03:00
< button class = "dropdown-item" type = "button" > Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque ut malesuada elit. Proin tristique, lorem eu vehicula congue, lectus ipsum porta quam, eget rutrum sapien turpis et libero.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque ut malesuada elit. Proin tristique, lorem eu vehicula congue, lectus ipsum porta quam, eget rutrum sapien turpis et libero.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque ut malesuada elit. Proin tristique, lorem eu vehicula congue, lectus ipsum porta quam, eget rutrum sapien turpis et libero.< / button >
< button class = "dropdown-item" type = "button" > Another action< / button >
< / div >
< / div >
{% endexample %}