PrenixComponents.Button (prenix_components v0.1.4)

Summary

Functions

Attributes

  • type (:string) - Defaults to nil.
  • color (:string) - Defaults to "default".
  • variant (:string) - Defaults to "solid".
  • size (:string) - Defaults to "md".
  • icon (:boolean) - Defaults to false.
  • radius (:string) - Defaults to "lg".
  • loading (:boolean) - Defaults to false.
  • disabled (:boolean) - Defaults to false.
  • class (:string) - Defaults to nil.
  • content_class (:string) - Defaults to nil.
  • spinner_wrapper_class (:string) - Defaults to nil.
  • spinner_class (:string) - Defaults to nil.
  • link_type (:string) - Defaults to nil.
  • Global attributes are accepted. Supports all globals plus: ["href", "method", "download", "hreflang", "referrerpolicy", "rel", "target"].

Slots

  • inner_block

Functions

Link to this function

button(assigns)

Attributes

  • type (:string) - Defaults to nil.
  • color (:string) - Defaults to "default".
  • variant (:string) - Defaults to "solid".
  • size (:string) - Defaults to "md".
  • icon (:boolean) - Defaults to false.
  • radius (:string) - Defaults to "lg".
  • loading (:boolean) - Defaults to false.
  • disabled (:boolean) - Defaults to false.
  • class (:string) - Defaults to nil.
  • content_class (:string) - Defaults to nil.
  • spinner_wrapper_class (:string) - Defaults to nil.
  • spinner_class (:string) - Defaults to nil.
  • link_type (:string) - Defaults to nil.
  • Global attributes are accepted. Supports all globals plus: ["href", "method", "download", "hreflang", "referrerpolicy", "rel", "target"].

Slots

  • inner_block