View Source PetalComponents.Badge (petal_components v1.9.2)

Summary

Functions

Attributes

  • size (:string) - Defaults to "md".
  • variant (:string) - Defaults to "light".
  • color (:string) - Defaults to "primary".
  • with_icon (:boolean) - adds some icon base classes. Defaults to false.
  • class (:string) - CSS class for parent div. Defaults to "".
  • label (:string) - label your badge. Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block

Functions

Attributes

  • size (:string) - Defaults to "md".
  • variant (:string) - Defaults to "light".
  • color (:string) - Defaults to "primary".
  • with_icon (:boolean) - adds some icon base classes. Defaults to false.
  • class (:string) - CSS class for parent div. Defaults to "".
  • label (:string) - label your badge. Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block