Textarea
The multiline textarea and its variations
The Bulma textarea is the multiline version of the input element. To use a Textarea component in your application, you need to import the BulmaTextareaModule
by adding the following lines to your app.module.ts
file.
To display the Bulma textarea component in your Angular application, add the buTextarea
directive in the <textarea>
tag.
Directive | Description |
---|---|
buTextarea |
For displaying a textarea element as Bulma textarea |
Properties | Description |
---|---|
theme |
Set the theme of the textarea |
size |
Set the size of the textarea |
hovered |
Set the hover state of the textarea, default value is false |
focus |
Set the focus state of the textarea, default value is false |
rounded |
Make the edges rounded, giving the textarea a capsule like shape, default value is false |
Sizes
You can set the size of the textarea using one the 4 size options:
small
normal
medium
large
States
- To define the hovered state of the input, set the
hovered
property to true. - To define the focused state of the input, set the
focus
property to true. - To disable the resizing of textarea, set the
fixed
property to true.
Normal
Hover
Focus
Fixed Size
Themes
You can change the theme of the textarea using one the 8 theme options:
black
dark
primary
link
info
success
warning
danger