The following modifiers are supported:
The following type attributes are supported:
type="text"
type="password"
type="email"
type="tel"
You are viewing the deprecated 0.7.5 version of the website. Click here to view the latest version
The text input and its variations
The following modifiers are supported:
The following type attributes are supported:
type="text"
type="password"
type="email"
type="tel"
You can resize the loading spinner by appending is-small
, is-medium
or is-large
to the control
container.
New! 0.5.3
If you use the readonly
HTML attribute, the input will look similar to a normal one, but is not editable and has no shadow.
If you also append the is-static
modifier, it removes the background, border, shadow, and horizontal padding, while maintaining the vertical spacing so you can easily align the input in any context, like a horizontal form.
You can append one of 2 modifiers on a control:
has-icons-left
has-icons-right
You also need to add a modifier on the icon:
icon is-left
if has-icons-left
is used
icon is-right
if has-icons-right
is used
The size of the input will define the size of the icon container.
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.
You can use these variables to customize this element. Simply set one or multiple of these variables before importing Bulma. Learn how.
Name | Type | Default value | Computed value |
---|---|---|---|
Name | Type | Default value | Computed value |
$input-color
|
color |
$grey-darker
|
hsl(0, 0%, 21%)
|
$input-background-color
|
color |
$white
|
hsl(0, 0%, 100%)
|
$input-border-color
|
color |
$grey-lighter
|
hsl(0, 0%, 86%)
|
$input-shadow
|
size |
inset 0 1px 2px rgba($black, 0.1)
|
|
$input-hover-color
|
color |
$grey-darker
|
hsl(0, 0%, 21%)
|
$input-hover-border-color
|
color |
$grey-light
|
hsl(0, 0%, 71%)
|
$input-focus-color
|
color |
$grey-darker
|
hsl(0, 0%, 21%)
|
$input-focus-border-color
|
color |
$link
|
hsl(217, 71%, 53%)
|
$input-focus-box-shadow-size
|
size |
0 0 0 0.125em
|
|
$input-focus-box-shadow-color
|
color |
rgba($link, 0.25)
|
|
$input-disabled-color
|
color |
$text-light
|
hsl(0, 0%, 48%)
|
$input-disabled-background-color
|
color |
$background
|
hsl(0, 0%, 96%)
|
$input-disabled-border-color
|
color |
$background
|
hsl(0, 0%, 96%)
|
$input-arrow
|
color |
$link
|
hsl(217, 71%, 53%)
|
$input-icon-color
|
color |
$grey-lighter
|
hsl(0, 0%, 86%)
|
$input-icon-active-color
|
color |
$grey
|
hsl(0, 0%, 48%)
|
$input-radius
|
size |
$radius
|
4px
|
This page is open source.
Noticed a typo? Or something unclear?
Improve this page on GitHub