Backpex.HTML.CoreComponents (Backpex v0.12.0)

View Source

Provides core components for Backpex.

Summary

Components

Renders a filter_badge component.

Renders a Heroicons icon.

Components

filter_badge(assigns)

Renders a filter_badge component.

Attributes

  • clear_event (:string) - event name for removing the badge. Defaults to "clear-filter".
  • filter_name (:string) (required)
  • label (:string) (required)
  • live_resource (:atom) - Defaults to nil.

Slots

  • inner_block

icon(assigns)

Renders a Heroicons icon.

Attributes

  • name (:string) (required)
  • class (:any) - Defaults to nil.
  • Global attributes are accepted.

Functions

noreply(socket)

ok(socket)