Angular Breadcrumbs-Komponente | ng-hub-ui-breadcrumbs

Angular Breadcrumbs-Komponente mit Router-Integration, individuellen Templates, RTL-Unterstützung und flexiblen Styling-Tokens.

Stile

Mixins und Stile

Override any of the `--hub-breadcrumb-*` design tokens in a single include. Every parameter is OPTIONAL and defaults to `null`: only the parameters you pass are emitted, so the rest keep the component's defaults. Token-based and self-contained (no Bootstrap dependencies).

Theming with hub-breadcrumb-theme
MixinParameterBeschreibung
Theming
hub-breadcrumb-theme()
$bg--hub-breadcrumb-bg
$color--hub-breadcrumb-color
$border-radius--hub-breadcrumb-border-radius
$padding-x--hub-breadcrumb-padding-x
$padding-y--hub-breadcrumb-padding-y
$margin-bottom--hub-breadcrumb-margin-bottom
$font-size--hub-breadcrumb-font-size
$divider--hub-breadcrumb-divider
$divider-flipped--hub-breadcrumb-divider-flipped
$divider-color--hub-breadcrumb-divider-color
$item-padding-x--hub-breadcrumb-item-padding-x
$item-active-color--hub-breadcrumb-item-active-color
$accent--hub-breadcrumb-accent
$link-color--hub-breadcrumb-link-color
$link-hover-color--hub-breadcrumb-link-hover-color
$link-decoration--hub-breadcrumb-link-decoration
$link-hover-decoration--hub-breadcrumb-link-hover-decoration
One-call theming for `<hub-breadcrumb>`

CSS-Variablen

Gestalte jedes Pixel mit 18 CSS-Variablen. Überschreibe sie auf :root oder begrenze sie auf einen Wrapper.

Breadcrumbs

Design tokens read by this component. Override them on the host element (or any ancestor) to customize; every default falls back to the ng-hub-ui-ds layer.

VariableStandardTypBeschreibung
--hub-breadcrumb-padding-xvar(--hub-ref-space-3, 1rem)length Horizontaler Innenabstand um die gesamte breadcrumbs-Komponente
--hub-breadcrumb-padding-y0.25remlength Vertikaler Innenabstand um die gesamte breadcrumbs-Komponente
--hub-breadcrumb-margin-bottomvar(--hub-ref-space-0, 0)length Unterer Außenabstand für die breadcrumbs-Komponente
--hub-breadcrumb-bgvar(--hub-sys-surface-page, transparent)color Hintergrundfarbe des breadcrumbs-Containers
--hub-breadcrumb-colorvar(--hub-sys-text-primary, #212529)color Base text color of the breadcrumb list
--hub-breadcrumb-font-sizeinheritlength Schriftgröße für breadcrumbs-Text
--hub-breadcrumb-border-radiusvar(--hub-ref-radius-md, 0.375rem)length Rahmenradius für den breadcrumbs-Container
--hub-breadcrumb-divider-colorvar(--hub-sys-text-muted, #6c757d)color Farbe des Trennzeichens
--hub-breadcrumb-divider'>'string Zeichen oder Symbol, das als Trenner zwischen breadcrumbs-Elementen verwendet wird
--hub-breadcrumb-divider-flipped'<'string Trennzeichen, das in RTL-Layouts verwendet wird (umgekehrte Richtung)
--hub-breadcrumb-item-padding-xvar(--hub-ref-space-1, 0.25rem)length Horizontaler Innenabstand um einzelne breadcrumbs-Elemente
--hub-breadcrumb-item-active-colorvar(--hub-sys-text-muted, #6c757d)color Schriftfarbe für das aktive (aktuelle) breadcrumbs-Element
--hub-breadcrumb-accentvar(--hub-sys-color-primary, #0d6efd)color Semantic accent for the links — re-based per variant (default = link colour)
--hub-breadcrumb-link-colorvar(--hub-breadcrumb-accent)color Schriftfarbe für nicht aktive breadcrumbs-Elemente (Links)
--hub-breadcrumb-link-hover-colorvar(--hub-breadcrumb-accent-emphasis, var(--hub-sys-link-hover-color, #0a58ca))color Schriftfarbe beim Überfahren von breadcrumbs-Links
--hub-breadcrumb-link-decorationnonestring Text decoration of breadcrumb links
--hub-breadcrumb-link-hover-decorationunderlinestring Text decoration of breadcrumb links on hover
--hub-breadcrumb-max-item-width12remlength Maximale Breite einer einzelnen Beschriftung, wenn die Kürzung aktiviert ist.

Styling und Theming

CSS-Variablen & Theming

Vollständige Theming-Kontrolle über CSS Custom Properties für Trennzeichen, Farben, Abstände und visuelles Erscheinungsbild.

Beispiele:

CSS Variables Customization

Customize breadcrumbs appearance using CSS custom properties for complete theming

Breadcrumbs - CSS Variables Styling

Customization of dividers, colors, and spacing through CSS variables

Custom Colors (via CSS class)

Code

Code
Import:
Template:
Component: