Breadcrumb
Code
<PyxisBreadcrumb
items="[{label: 'Home', route: '/'}, {label: 'Contact', route: '/contact'}]"
data-testid="breadcrumb-testid"
/>
Props
The Breadcrumb component supports the following props:
Name |
Type |
Default |
Required |
---|---|---|---|
items |
{
label: string }[] |
undefined |
true |
dataTestid |
string |
undefined |
true |
divider |
'/'|'>' |
'>' |
false |
breadcrumbClass |
string |
undefined |
false |
weight |
'regular'|'bold' |
'regular' |
false |
In Component Select
Code
<PyxisInComponentSelect
:dataTestid="in-component-select-datatest-id"
:inComponentItems="inComponentItems"
>
<template #htmlElement>
<PyxisIcon icon-class="far fa-planet-ringed" class="mr-10" withBackground color="system"/>
<div class="flex flex-col text-left">
<PyxisText class="text-caption" size="m-bold">Item</PyxisText>
<PyxisText size="s">Sub item</PyxisText>
</div>
</template>
</PyxisInComponentSelect>
inComponentItems: [
{
label: "Home",
icon: "fas fa-home",
route: "/",
},
{
label: "Library",
icon: "fas fa-book",
route: "/",
},
{
label: "Data",
icon: "fas fa-database",
route: "/",
},
{
label: "Files",
icon: "fas fa-file",
route: "/",
},
],
Props
The InComponentSelect component supports the following props:
Name |
Type |
Default |
Required |
---|---|---|---|
inComponentItems |
InComponentItem [] |
undefined |
true |
dataTestid |
string |
undefined |
true |
class |
CxOptions | string |
undefined |
false |
Types
export type InComponentItem = {
label: string | number
icon?: string
iconColor?: string
background?: boolean
size?: string
route: string
}
Slots
The InComponentSelect component offers the following slots for managing its template content:
- v-slot:htmlElement : This slot is used to define the element that triggers the display of the InComponentSelect when clicked.