diff options
| author | Mark Otto <[email protected]> | 2017-11-24 17:02:01 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2017-11-24 17:02:01 -0800 |
| commit | babdf36c422f3e6e9d6fe80133e0b3cf121b5ef4 (patch) | |
| tree | b6c753c66baae2f6a889eceb65e971967b61dcc7 /docs/4.0/components/forms.md | |
| parent | 643f5482a408b372b6da84c7859cdfa3fd4cb0b8 (diff) | |
| parent | 7c10068c76751ee0ae8aab8cf0b7bdfdf40912ae (diff) | |
| download | bootstrap-babdf36c422f3e6e9d6fe80133e0b3cf121b5ef4.tar.xz bootstrap-babdf36c422f3e6e9d6fe80133e0b3cf121b5ef4.zip | |
Merge branch 'v4-dev' of https://github.com/twbs/bootstrap into v4-dev
Diffstat (limited to 'docs/4.0/components/forms.md')
| -rw-r--r-- | docs/4.0/components/forms.md | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/docs/4.0/components/forms.md b/docs/4.0/components/forms.md index 5b79626a2..eba9fc75f 100644 --- a/docs/4.0/components/forms.md +++ b/docs/4.0/components/forms.md @@ -1018,6 +1018,46 @@ Custom `<select>` menus need only a custom class, `.custom-select` to trigger th </select> {% endexample %} +You may also choose from small and large custom selects to match our similarly sized text inputs. + +{% example html %} +<select class="custom-select custom-select-lg"> + <option selected>Open this select menu</option> + <option value="1">One</option> + <option value="2">Two</option> + <option value="3">Three</option> +</select> + +<select class="custom-select custom-select-sm"> + <option selected>Open this select menu</option> + <option value="1">One</option> + <option value="2">Two</option> + <option value="3">Three</option> +</select> +{% endexample %} + +The `multiple` attribute is also supported: + +{% example html %} +<select class="custom-select" multiple> + <option selected>Open this select menu</option> + <option value="1">One</option> + <option value="2">Two</option> + <option value="3">Three</option> +</select> +{% endexample %} + +As is the `size` attribute: + +{% example html %} +<select class="custom-select" size="3"> + <option selected>Open this select menu</option> + <option value="1">One</option> + <option value="2">Two</option> + <option value="3">Three</option> +</select> +{% endexample %} + ### File browser The file input is the most gnarly of the bunch and require additional JavaScript if you'd like to hook them up with functional *Choose file...* and selected file name text. |
