blask/styled/input

Constants

pub const build: fn(
  InputProps(fn(String) -> a, String, TextInput, a),
) -> Element(a)
pub const build_file: fn(InputProps(Nil, Nil, FileInput, a)) ->
  Element(a)
pub const on_input: fn(
  InputProps(Nil, a, TextInput, b),
  fn(String) -> b,
) -> InputProps(fn(String) -> b, a, TextInput, b)
pub const with_attributes: fn(
  InputProps(a, b, c, d),
  List(Attribute(d)),
) -> InputProps(a, b, c, d)
pub const with_id: fn(InputProps(a, b, c, d), String) ->
  InputProps(a, b, c, d)
pub const with_name: fn(InputProps(a, b, c, d), String) ->
  InputProps(a, b, c, d)
pub const with_placeholder: fn(
  InputProps(a, b, TextInput, c),
  String,
) -> InputProps(a, b, TextInput, c)
pub const with_value: fn(InputProps(a, Nil, TextInput, b), String) ->
  InputProps(a, String, TextInput, b)

Functions

pub fn custom(
  type_: String,
) -> InputProps(Nil, Nil, TextInput, a)
pub fn file() -> InputProps(Nil, Nil, FileInput, a)
pub fn password() -> InputProps(Nil, Nil, TextInput, a)
pub fn text() -> InputProps(Nil, Nil, TextInput, a)
Search Document