Aurora.Uix.Templates.Basic.RoutingComponents (Aurora UIX v0.1.4-rc.4)

Copy Markdown

Provides routing-related UI components for navigation in Phoenix LiveView applications using Aurora UIX. These components enable navigation and back actions that integrate with Aurora's routing system.

Key Features

  • Provides navigation link components that trigger forward or back navigation events.
  • Supports both standard and styled back navigation links.
  • Designed for use with Phoenix LiveView and Aurora UIX routing.
  • Accepts custom HTML attributes and content slots for flexible usage.

Summary

Functions

Renders a styled back navigation link with an arrow icon.

Renders a link that triggers navigation via a click event.

Renders a simple back navigation link without styling.

Functions

auix_back(assigns)

@spec auix_back(map()) :: Phoenix.LiveView.Rendered.t()

Renders a styled back navigation link with an arrow icon.

Attributes

  • rest - Additional HTML attributes for the anchor tag

Slots

  • inner_block - Required. The content to be displayed within the link

Returns

Phoenix LiveView rendered content

Attributes

  • Global attributes are accepted. Supports all globals plus: ["download", "hreflang", "referrerpolicy", "rel", "target", "type"].

Slots

  • inner_block (required)

auix_link(assigns)

@spec auix_link(map()) :: Phoenix.LiveView.Rendered.t()

Renders a link that triggers navigation via a click event.

Attributes

  • navigate - Target path for navigation
  • patch - Target path for patching
  • rest - Additional HTML attributes for the anchor tag

Slots

  • inner_block - Required. The content to be displayed within the link

Returns

Phoenix LiveView rendered content

Attributes

  • navigate (:string)
  • patch (:string)
  • Global attributes are accepted. Supports all globals plus: ["class", "name", "download", "href", "lang", "referrer", "policy", "rel", "target", "type"].

Slots

  • inner_block (required)