glaze/basecoat/textarea

Basecoat documentation: https://basecoatui.com/components/textarea/

Textarea helpers for multi-line text input.

Use textarea when the input is expected to span multiple lines (notes, descriptions, messages).

Recipe

import glaze/basecoat/textarea
import lustre/attribute

fn message_field() {
  textarea.textarea([
    attribute.placeholder("Type your message here"),
  ], "")
}

References

Values

pub fn disabled() -> attribute.Attribute(msg)
pub fn id(id: String) -> attribute.Attribute(msg)
pub fn invalid() -> attribute.Attribute(msg)
pub fn name(n: String) -> attribute.Attribute(msg)
pub fn placeholder(text: String) -> attribute.Attribute(msg)
pub fn rows(n: Int) -> attribute.Attribute(msg)
pub fn textarea(
  attrs: List(attribute.Attribute(msg)),
  content: String,
) -> element.Element(msg)
Search Document