Noora.DismissIcon (noora v0.11.0)

Renders a dismiss icon button for closing or removing elements, with customizable size.

Example

<.dismiss_icon size="small" on_dismiss="hide-banner" />

Summary

Functions

dismiss_icon(assigns)

Attributes

  • size (:string) - The size of the icon. Defaults to "large". Must be one of "small", or "large".
  • on_dismiss (:string) - Event to trigger when the dismiss icon is clicked. Defaults to nil.
  • Global attributes are accepted. Additional HTML attributes. Supports all globals plus: ["disabled"].