Breadcrumb Item
<ahi-breadcrumb-item> | AhiBreadcrumbItem
Breadcrumb items are used inside breadcrumbs to represent different links.
<ahi-breadcrumb>
<ahi-breadcrumb-item>
<ahi-icon slot="prefix" name="home"></ahi-icon>
Home
</ahi-breadcrumb-item>
<ahi-breadcrumb-item>RCM Dashboard</ahi-breadcrumb-item>
<ahi-breadcrumb-item>General</ahi-breadcrumb-item>
</ahi-breadcrumb>
Importing
To import this component using a script tag:
<script type="module" src="/path/to/azalea-kit-ui/dist/components/breadcrumb-item/breadcrumb-item.js"></script>
To import this component using a bundler:
import '@azaleahealth/azalea-kit-ui/dist/components/breadcrumb-item/breadcrumb-item.js';
Slots
| Name | Description |
|---|---|
| (default) | The breadcrumb item’s label. |
prefix
|
An optional prefix, usually an icon or icon button. |
suffix
|
An optional suffix, usually an icon or icon button. |
separator
|
The separator to use for the breadcrumb item. This will only change the separator for this item. If
you want to change it for all items in the group, set the separator on
<ahi-breadcrumb> instead.
|
Learn more about using slots.
Properties
| Name | Description | Type | Default | |
|---|---|---|---|---|
href
|
Optional URL to direct the user to when the breadcrumb item is activated. When set, a link will be rendered internally. When unset, a button will be rendered instead. |
string | undefined
|
- | |
target
|
Tells the browser where to open the link. Only used when href is set. |
'_blank' | '_parent' | '_self' | '_top' | undefined
|
- | |
rel
|
The rel attribute to use on the link. Only used when href is set. |
string
|
'noreferrer noopener'
|
|
updateComplete |
A read-only promise that resolves when the component has finished updating. |
Learn more about properties and attributes.
CSS Parts
| Name | Description |
|---|---|
base |
Deprecated. Use the breadcrumb-item part instead. |
breadcrumb-item |
The component’s outer wrapper. |
label |
The breadcrumb item’s label. |
prefix |
The container that wraps the prefix. |
suffix |
The container that wraps the suffix. |
separator |
The container that wraps the separator. |
Learn more about customizing CSS parts.