View Source PetalComponents.Alert (petal_components v0.19.6)

Link to this section Summary

Functions

Attributes

  • color (:string) - Defaults to "info".
  • with_icon (:boolean) - adds some icon base classes. Defaults to false.
  • class (:string) - CSS class for parent div. Defaults to "".
  • heading (:string) - label your heading. Defaults to nil.
  • label (:string) - label your alert. Defaults to nil.
  • rest (:global)
  • close_button_properties (:list) - a list of properties passed to the close button. Defaults to nil.

Slots

  • inner_block

Link to this section Functions

attributes

Attributes

  • color (:string) - Defaults to "info".
  • with_icon (:boolean) - adds some icon base classes. Defaults to false.
  • class (:string) - CSS class for parent div. Defaults to "".
  • heading (:string) - label your heading. Defaults to nil.
  • label (:string) - label your alert. Defaults to nil.
  • rest (:global)
  • close_button_properties (:list) - a list of properties passed to the close button. Defaults to nil.

slots

Slots

  • inner_block