Input
The text input and its variations
To use an Input component in your application, you need to import the BulmaInputModule by adding the following lines to your app.module.ts file.
Basic
To display the Input component in your Angular application, add the buInput directive in the <input> tag. The <input> tag supports following type sttributes:
type="text"type="password"type="email"type="tel"
| Directive | Description |
|---|---|
buInput |
For displaying an input element as Bulma input |
| Properties | Description |
|---|---|
theme |
Set the theme of the Input |
size |
Set the size of the Input |
hovered |
Set the hover state of the Input, default value is false |
focus |
Set the focus state of the Input, default value is false |
rounded |
Make the edges rounded, giving the Input a capsule like shape, default value is false |
Sizes
You can set the size of the input using one the 4 size options:
smallnormalmediumlarge
States
- To define the hovered state of the input, set the
hoveredproperty to true. - To define the focused state of the input, set the
focusproperty to true.
Normal
Hover
Focus
Themes
You can change the theme of the input using one the 8 theme options:
blackdarkprimarylinkinfosuccesswarningdanger
Styles
To make the edges round and give the input a capsule like shape, set the rounded property to true.