← All Components
<mth-breadcrumb-item>
Navigation trail entry for <mth-breadcrumbs> with safe link handling and aria-current="page".
When NOT to use: Use a lightweight @methane-ui/css layout class instead of a custom element when static CSS suffices.
Live Interactive Preview
Ready · interact with <mth-breadcrumb-item>, or toggle Theme, Direction (LTR/RTL), or props above.
Multi-Framework Playground & Snippets
<script type="module" src="@methane-ui/ui/breadcrumb-item"></script>
<mth-breadcrumb-item separator="/">Example</mth-breadcrumb-item>import '@methane-ui/ui/breadcrumb-item';
import '@methane-ui/react';
export function Example() {
return <mth-breadcrumb-item separator="/">Example</mth-breadcrumb-item>;
}<script setup lang="ts">
import '@methane-ui/ui/breadcrumb-item';
</script>
<template>
<mth-breadcrumb-item separator="/">Example</mth-breadcrumb-item>
</template>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@methane-ui/ui/breadcrumb-item';
import { MthBreadcrumbItemDirective } from '@methane-ui/angular';
@Component({
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [MthBreadcrumbItemDirective],
template: `<mth-breadcrumb-item separator="/">Example</mth-breadcrumb-item>`,
})
export class ExampleComponent {}<script lang="ts">
import '@methane-ui/ui/breadcrumb-item';
import MthBreadcrumbItem from '@methane-ui/svelte/MthBreadcrumbItem.svelte';
</script>
<MthBreadcrumbItem separator="/">Example</MthBreadcrumbItem>Properties & Attributes
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
href | href | string | "" | Optional safe destination URL. |
target | target | string | "" | Link target context when href is provided. |
rel | rel | string | "" | Relationship attribute (auto-adds noopener noreferrer when target="_blank"). |
current | current | boolean | false | Marks this item as the active page with aria-current="page". |
separator | separator | string | "/" | Separator text injected between breadcrumb items (inherited from <mth-breadcrumbs> if unset). |
Accessibility Checklist
| Category | Requirement | Verified By |
|---|---|---|
| aria | All aria-* IDREFs resolve within the same DOM root (ADR-003). | scanSameRootAria |
| focus | Focus ownership matches focusModel="none" with host role="listitem". | lint-plugin & spec-compiler |
| contrast | Renders legible borders, focus outlines, and selection indicators under forced-colors: active. | Playwright forced-colors matrix |
| states | Exposes ElementInternals CustomStateSet flags: :state(current). | Conformance suite |