grom/component/text_input

Types

pub type Style {
  Short
  Paragraph
}

Constructors

  • Short
  • Paragraph
pub type TextInput {
  TextInput(
    id: option.Option(Int),
    custom_id: String,
    style: Style,
    min_length: Int,
    max_length: Int,
    is_required: Bool,
    value: option.Option(String),
    placeholder: option.Option(String),
  )
}

Constructors

Values

pub fn new(
  custom_id custom_id: String,
  style style: Style,
) -> TextInput
Search Document