Select
The browser built-in select dropdown, styled accordingly
{%
include meta.html
colors=true
sizes=true
variables=false
%}
The following modifiers are supported:
{{select_example}}
{% highlight html %}{{select_example}}{% endhighlight %}
{% if site.vernum >= 44 %}
Multiple select
New!
0.4.4
You can style a multiple select dropdown, by using the is-multiple
modifier, and by using the multiple
HTML attribute.
{{select_multiple_example}}
{% highlight html %}{{select_multiple_example}}{% endhighlight %}
{% endif %}
{% include anchor.html name="Colors" %}
{{colors_example}}
{% highlight html %}{{colors_example}}{% endhighlight %}
{% include anchor.html name="Sizes" %}
{{sizes_example}}
{% highlight html %}{{sizes_example}}{% endhighlight %}
States
Normal
{{normal_example}}
{% highlight html %}{{normal_example}}{% endhighlight %}
Hover
{{hover_example}}
{% highlight html %}{{hover_example}}{% endhighlight %}
Focus
{{focus_example}}
{% highlight html %}{{focus_example}}{% endhighlight %}
Loading
{{loading_example}}
{% highlight html %}{{loading_example}}{% endhighlight %}
You can append the modifier on a control:
You also need to add a modifier on the icon:
-
icon is-left
since has-icons-left
is used
The size of the select will define the size of the icon container.
{{icons_example}}
{% highlight html %}{{icons_example}}{% endhighlight %}
If the control contains an icon, Bulma will make sure the icon remains centered, no matter the size of the input or of the icon.
{{has_icons_small_example}}
{% highlight html %}{{has_icons_small_example}}{% endhighlight %}
{{has_icons_normal_example}}
{% highlight html %}{{has_icons_normal_example}}{% endhighlight %}
{{has_icons_medium_example}}
{% highlight html %}{{has_icons_medium_example}}{% endhighlight %}
{{has_icons_large_example}}
{% highlight html %}{{has_icons_large_example}}{% endhighlight %}