AvenUI.Components.EmptyState (AvenUI v1.0.0)

Copy Markdown View Source

Empty state with icon, title, description, and optional action slot.

Examples

<.empty_state
  title="No deployments yet"
  description="Push a commit to trigger your first deploy."
>
  <.button variant="secondary" size="sm">Read the docs</.button>
</.empty_state>

Summary

Functions

Renders an empty state with icon, title, description, and optional action.

Functions

empty_state(assigns)

Renders an empty state with icon, title, description, and optional action.

Attributes

  • title (:string) (required)
  • description (:string) - Defaults to nil.
  • icon_path (:string) - Custom SVG path d= attribute. Defaults to nil.
  • class (:string) - Defaults to nil.

Slots

  • inner_block