Phoenix UI

Phoenix UI home page
  1. Getting Started
  2. Installation: Tailwind CLI

Breadcrumbs

Breadcrumbs consist of a list of links that help a user visualize a page's location within the hierarchical structure of a website, and allow navigation up to any of its "ancestors".

Examples

Below you can view various implementations with example markup.

Basic

Here is an example of a basic breadcrumb component.

Separator

In the following example, we are using a different heroicon name.

Icon

Adding heroicons is easy when using extend_class functionality.

Customization

Below is an example of extending customization even further.

API

API documentation for the component. Learn about imports and available attributes.

Import

There are multiple ways to import components.


    # PhoenixUI macro which imports all components
    use PhoenixUI
    # Or import component individually
    import PhoenixUI.Components.Backdrop
    

Attributes

Below is a list of attributes that can be applied to the component.

Name Type Default Description
HTML attribute any Supports all HTML attributes.
extend_class string Adds additional classes.
link slot The links to use.
phx-{any} binding Supports all Phoenix DOM element bindings.
separator string chevron-right Any Heroicon name.