Summary

Functions

Breadcrumb nav wrapper.

Breadcrumb ellipsis element.

Breadcrumb item (li).

Breadcrumb link.

Breadcrumb list (ol).

Breadcrumb current page item.

Breadcrumb separator item.

Generic application menu list inspired by daisyUI's menu primitive.

Navigation menu scaffold.

Pagination nav wrapper.

Pagination list wrapper (ul).

Pagination ellipsis marker.

Pagination item (li).

Pagination link with active state.

Next-page shortcut link.

Previous-page shortcut link.

Tab container with trigger and content slots.

Functions

pagination(assigns)

Pagination nav wrapper.

Example

heex title="Pagination" align="full" <.pagination> <.pagination_content> <.pagination_item><.pagination_previous href="#" /></.pagination_item> <.pagination_item><.pagination_link href="#" active>1</.pagination_link></.pagination_item> <.pagination_item><.pagination_next href="#" /></.pagination_item> </.pagination_content> </.pagination>

## Screenshot

pagination/1 screenshot

View live examples and full component docs.

## Attributes

class (:string) - Defaults to nil. Global attributes are accepted. ## Slots

* inner_block (required)

pagination_content(assigns)

Pagination list wrapper (ul).

Example

heex title="Pagination content" align="full" <.pagination_content> <.pagination_item><.pagination_link href="#" active>1</.pagination_link></.pagination_item> <.pagination_item><.pagination_link href="#">2</.pagination_link></.pagination_item> </.pagination_content>

## Screenshot

pagination_content/1 screenshot

View live examples and full component docs.

## Attributes

class (:string) - Defaults to nil. Global attributes are accepted. ## Slots

* inner_block (required)

pagination_ellipsis(assigns)

Pagination ellipsis marker.

Example

heex title="Pagination ellipsis" <.pagination_ellipsis />

## Screenshot

pagination_ellipsis/1 screenshot

View live examples and full component docs.

## Attributes

class (:string) - Defaults to nil. Global attributes are accepted.

pagination_item(assigns)

Pagination item (li).

Example

heex title="Pagination item" align="full" <.pagination_item> <.pagination_link href="#" active>1</.pagination_link> </.pagination_item>

## Screenshot

pagination_item/1 screenshot

View live examples and full component docs.

## Attributes

class (:string) - Defaults to nil. Global attributes are accepted. ## Slots

* inner_block (required)

pagination_link(assigns)

Pagination link with active state.

Example

heex title="Pagination link" <.pagination_link href="#" active>1</.pagination_link>

## Screenshot

pagination_link/1 screenshot

View live examples and full component docs.

## Attributes

href (:string) - Defaults to nil. active (:boolean) - Defaults to false. size (:atom) - Defaults to :icon. Must be one of :default, :sm, :lg, or :icon. class (:string) - Defaults to nil. * Global attributes are accepted. ## Slots

* inner_block (required)

pagination_next(assigns)

Next-page shortcut link.

Example

heex title="Next page link" <.pagination_next href="#" />

## Screenshot

pagination_next/1 screenshot

View live examples and full component docs.

## Attributes

href (:string) - Defaults to nil. class (:string) - Defaults to nil. * Global attributes are accepted.

pagination_previous(assigns)

Previous-page shortcut link.

Example

heex title="Previous page link" <.pagination_previous href="#" />

## Screenshot

pagination_previous/1 screenshot

View live examples and full component docs.

## Attributes

href (:string) - Defaults to nil. class (:string) - Defaults to nil. * Global attributes are accepted.

tabs(assigns)

Tab container with trigger and content slots.

State is controlled through the value assign.

Examples

heex title="Settings tabs" align="full" <.tabs value="account"> <:trigger value="account">Account</:trigger> <:trigger value="security">Security</:trigger> <:trigger value="notifications">Notifications</:trigger> <:content value="account"> <.card> <.card_header> <.card_title>Account</.card_title> <.card_description>Update your profile details.</.card_description> </.card_header> </.card> </:content> <:content value="security"> <p class="text-sm">Manage password and two-factor settings.</p> </:content> <:content value="notifications"> <p class="text-sm">Choose how you receive alerts.</p> </:content> </.tabs>

heex title="Line variant for analytics views" vrt <.tabs value="overview" variant={:line}> <:trigger value="overview">Overview</:trigger> <:trigger value="usage">Usage</:trigger> <:trigger value="logs">Logs</:trigger> <:content value="overview">Overview content</:content> <:content value="usage">Usage content</:content> <:content value="logs">Logs content</:content> </.tabs>

heex title="Vertical tabs for admin panels" vrt <.tabs value="general" orientation={:vertical} class="items-start"> <:trigger value="general">General</:trigger> <:trigger value="members">Members</:trigger> <:trigger value="api">API Keys</:trigger> <:content value="general">General settings</:content> <:content value="members">Team membership</:content> <:content value="api">API key management</:content> </.tabs>

## Screenshot

tabs/1 screenshot

View live examples and full component docs.

## Attributes

id (:string) - Defaults to nil. value (:string) (required) - active tab value used to mark the selected trigger and panel. orientation (:atom) - layout direction for both the trigger list and content shell. Defaults to :horizontal. Must be one of :horizontal, or :vertical. variant (:atom) - visual treatment for the tab list and active trigger. Defaults to :default. Must be one of :default, or :line. class (:string) - Defaults to nil. Global attributes are accepted. ## Slots

* trigger (required) - Accepts attributes:

value (:string) (required) - value that activates the associated content panel. class (:string) data_theme_mode (:string) - optional theme marker used by demo/docs previews. content - Accepts attributes:

* value (:string) (required) - value matched against the active tab.