blask/styled/pill

Types

pub type Closable
pub type NoContent =
  Nil
pub type NotClosable =
  Nil
pub opaque type PillProps(closable, has_content, msg)

Functions

pub fn build(props: PillProps(a, Element(b), b)) -> Element(b)
pub fn new() -> PillProps(Nil, Nil, a)
pub fn simple(text: String) -> Element(a)
pub fn with_close_button(
  props props: PillProps(Nil, a, b),
  on_close on_close: b,
) -> PillProps(Closable, a, b)
pub fn with_content(
  props props: PillProps(a, Nil, b),
  content content: Element(b),
) -> PillProps(a, Element(b), b)
pub fn with_text(
  props props: PillProps(a, Nil, b),
  text text: String,
) -> PillProps(a, Element(b), b)
Search Document