Angular パンくずリストコンポーネント | ng-hub-ui-breadcrumbs

Router 連携、カスタムテンプレート、RTL 対応、柔軟なスタイルトークンを備えた Angular パンくずリストコンポーネント。

スタイル

ミックスインとスタイル

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
ミックスインパラメータ説明
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 変数

18 個の CSS 変数であらゆるピクセルをテーマ設定。:root で上書きするか、ラッパーにスコープを限定できます。

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.

変数デフォルト説明
--hub-breadcrumb-padding-xvar(--hub-ref-space-3, 1rem)length breadcrumbs コンポーネント全体の水平パディング
--hub-breadcrumb-padding-y0.25remlength breadcrumbs コンポーネント全体の垂直パディング
--hub-breadcrumb-margin-bottomvar(--hub-ref-space-0, 0)length breadcrumbs コンポーネントの下マージン
--hub-breadcrumb-bgvar(--hub-sys-surface-page, transparent)color breadcrumbs コンテナの背景色
--hub-breadcrumb-colorvar(--hub-sys-text-primary, #212529)color Base text color of the breadcrumb list
--hub-breadcrumb-font-sizeinheritlength breadcrumbs テキストのフォントサイズ
--hub-breadcrumb-border-radiusvar(--hub-ref-radius-md, 0.375rem)length breadcrumbs コンテナの境界半径
--hub-breadcrumb-divider-colorvar(--hub-sys-text-muted, #6c757d)color 区切り文字の色
--hub-breadcrumb-divider'>'string breadcrumbs 項目間の区切りとして使用される文字または記号
--hub-breadcrumb-divider-flipped'<'string RTL レイアウトで使用される区切り文字(方向が反転)
--hub-breadcrumb-item-padding-xvar(--hub-ref-space-1, 0.25rem)length 個々の breadcrumbs 項目の水平パディング
--hub-breadcrumb-item-active-colorvar(--hub-sys-text-muted, #6c757d)color アクティブな(現在の)breadcrumbs 項目のテキスト色
--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 非アクティブな breadcrumbs 項目(リンク)のテキスト色
--hub-breadcrumb-link-hover-colorvar(--hub-breadcrumb-accent-emphasis, var(--hub-sys-link-hover-color, #0a58ca))color breadcrumbs リンクにホバーした際のテキスト色
--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 切り詰め有効時の単一ラベルの最大幅。

スタイリングとテーマ設定

CSS 変数とテーマ設定

区切り文字、色、間隔、視覚的な外観に対する CSS カスタムプロパティを使用した完全なテーマ制御。

サンプル:

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)

コード

コード
Import:
Template:
Component: