Textarea

The b.Textarea constructor creates a text area.

ModifierAction
b.Rows(int)Set the text area height, in number of rows
b.HoveredApply the hovered style
b.FocusedApply the focused style
b.LoadingAdd a loading spinner to the right of the text area
b.DisabledDisable the text area
e.ReadOnly()Read only text area
b.FixedSizeDisable the text area resizing capability
b.PrimarySet color to primary
b.LinkSet color to link
b.InfoSet color to info
b.SuccessSet color to success
b.WarningSet color to warning
b.DangerSet color to danger
b.SmallSet size to small
b.NormalSet size to normal
b.MediumSet size to medium
b.LargeSet size to large
ChildAction
b.OnTextarea(...any)Apply children to the <textarea> element - only useful with the b.Disabled modifier if you want to apply the is-disabled class to the text area instead of using the disabled attribute

Bulma examples

Example
Code
b.Textarea(e.Placeholder("e.g. Hello world"))
ResultHTML
Example
Code
b.Textarea(e.Placeholder("10 lines of textarea"), b.Rows(10))
ResultHTML

Colors

Example
Code
b.Textarea(b.Primary, e.Placeholder("Primary textarea"))
ResultHTML
Example
Code
b.Textarea(b.Link, e.Placeholder("Link textarea"))
ResultHTML
Example
Code
b.Textarea(b.Info, e.Placeholder("Info textarea"))
ResultHTML
Example
Code
b.Textarea(b.Success, e.Placeholder("Success textarea"))
ResultHTML
Example
Code
b.Textarea(b.Warning, e.Placeholder("Warning textarea"))
ResultHTML
Example
Code
b.Textarea(b.Danger, e.Placeholder("Danger textarea"))
ResultHTML

Sizes

Example
Code
b.Field(
	b.Control(
		b.Textarea(b.Small, e.Placeholder("Small textarea")),
	),
),
b.Field(
	b.Control(
		b.Textarea(e.Placeholder("Normal textarea")),
	),
),
b.Field(
	b.Control(
		b.Textarea(b.Medium, e.Placeholder("Medium textarea")),
	),
),
b.Field(
	b.Control(
		b.Textarea(b.Large, e.Placeholder("Large textarea")),
	),
)
ResultHTML

States

Example
Code
b.Control(
	b.Textarea(e.Placeholder("Normal textarea")),
)
ResultHTML
Example
Code
b.Control(
	b.Textarea(b.Hovered, e.Placeholder("Hovered textarea")),
)
ResultHTML
Example
Code
b.Control(
	b.Textarea(b.Focused, e.Placeholder("Focused textarea")),
)
ResultHTML
Example
Code
b.Control(
	b.Loading,
	b.Textarea(e.Placeholder("Loading textarea")),
)
ResultHTML
Example
Code
b.Field(
	b.Control(
		b.Small,
		b.Loading,
		b.Textarea(b.Small, e.Placeholder("Small loading textarea")),
	),
),
b.Field(
	b.Control(
		b.Loading,
		b.Textarea(e.Placeholder("Normal loading textarea")),
	),
),
b.Field(
	b.Control(
		b.Medium,
		b.Loading,
		b.Textarea(b.Medium, e.Placeholder("Medium loading textarea")),
	),
),
b.Field(
	b.Control(
		b.Large,
		b.Loading,
		b.Textarea(b.Large, e.Placeholder("Large loading textarea")),
	),
)
ResultHTML
Example
Code
b.Control(
	b.Textarea(e.Placeholder("Disabled textarea"), b.Disabled),
)
ResultHTML
Example
Code
b.Control(
	b.Textarea(e.ReadOnly(), "This content is readonly"),
)
ResultHTML
Example
Code
b.Control(
	b.Textarea(b.FixedSize, e.Placeholder("Fixed size textarea")),
)
ResultHTML