react_gleam/attribute

Types

pub opaque type Attribute(g, action)

Values

pub fn accept(types: List(String)) -> Attribute(g, action)
pub fn accept_charset(
  types: List(String),
) -> Attribute(g, action)
pub fn action(uri: String) -> Attribute(g, action)
pub fn alt(text: String) -> Attribute(g, action)
pub fn attribute(
  name: String,
  value: String,
) -> Attribute(g, action)
pub fn autocomplete(
  should_autocomplete: Bool,
) -> Attribute(g, action)
pub fn autofocus(should_autofocus: Bool) -> Attribute(g, action)
pub fn autoplay(should_autoplay: Bool) -> Attribute(g, action)
pub fn checked(is_checked: Bool) -> Attribute(g, action)
pub fn class(name: String) -> Attribute(g, action)
pub fn classes(
  names: List(#(String, Bool)),
) -> Attribute(g, action)
pub fn cols(val: Int) -> Attribute(g, action)
pub fn controls(visible: Bool) -> Attribute(g, action)
pub fn disabled(is_disabled: Bool) -> Attribute(g, action)
pub fn download(filename: String) -> Attribute(g, action)
pub fn event(
  name: String,
  handler: fn(dynamic.Dynamic, fn(action) -> Nil) -> Nil,
) -> Attribute(g, action)
pub fn for(id: String) -> Attribute(g, action)
pub fn height(val: Int) -> Attribute(g, action)
pub fn href(uri: String) -> Attribute(g, action)
pub fn id(name: String) -> Attribute(g, action)
pub fn loop(should_loop: Bool) -> Attribute(g, action)
pub fn max(val: String) -> Attribute(g, action)
pub fn min(val: String) -> Attribute(g, action)
pub fn name(name: String) -> Attribute(g, action)
pub fn pattern(regex: String) -> Attribute(g, action)
pub fn placeholder(text: String) -> Attribute(g, action)
pub fn property(
  name: String,
  value: dynamic.Dynamic,
) -> Attribute(g, action)
pub fn readonly(is_readonly: Bool) -> Attribute(g, action)
pub fn ref(value: hook.Ref(g)) -> Attribute(g, action)
pub fn rel(relationship: String) -> Attribute(g, action)
pub fn required(is_required: Bool) -> Attribute(g, action)
pub fn rows(val: Int) -> Attribute(g, action)
pub fn selected(is_selected: Bool) -> Attribute(g, action)
pub fn src(uri: String) -> Attribute(g, action)
pub fn step(val: String) -> Attribute(g, action)
pub fn style(
  properties: List(#(String, String)),
) -> Attribute(g, action)
pub fn target(target: String) -> Attribute(g, action)
pub fn type_(name: String) -> Attribute(g, action)
pub fn value(val: dynamic.Dynamic) -> Attribute(g, action)
pub fn width(val: Int) -> Attribute(g, action)
pub fn wrap(mode: String) -> Attribute(g, action)
Search Document