BreadcrumbDivider
Separator rendered between breadcrumb items. Defaults to "/" but accepts any text string or MDI icon identifier.
Structure
Anatomie
Décomposition visuelle de la structure interne du composant avec les appels de classes BEM.
<origam-breadcrumb-divider> — root <span> ① hosts text or an <origam-icon> ② depending on whether divider is an MDI identifier.- 1.origam-breadcrumb-divider
- Root element (default:
<span>). Carries padding, color and density classes. Usually rendered inside a<li aria-hidden>from OrigamBreadcrumb. - 2(text or origam-icon)
- Content: raw text when
divideris a plain string;<origam-icon>when it is an MDI icon identifier (resolved viaMDI_ICONSenum check).
API
Props
Toutes les props acceptées par ce composant, avec leur type, valeur par défaut et description.
- Separator content. A plain string is rendered as text; an MDI icon identifier (e.g. "mdi-chevron-right") renders OrigamIcon.
- idstring
- classstring | Array<string> | object
- stylestring | Array<string> | object | StyleValue
- tagstring'span'
- HTML element rendered at the root. Defaults to <span> (aria-hidden on the parent <li>).
- paddingboolean | number | string
- paddingTopboolean | number | string
- paddingLeftboolean | number | string
- paddingBottomboolean | number | string
- paddingRightboolean | number | string
- paddingBlockboolean | number | string
- paddingInlineboolean | number | string
- paddingInlineStartboolean | number | string
- paddingInlineEndboolean | number | string
- paddingBlockStartboolean | number | string
- paddingBlockEndboolean | number | string
- marginboolean | number | string
- marginTopboolean | number | string
- marginLeftboolean | number | string
- marginBottomboolean | number | string
- marginRightboolean | number | string
- marginBlockboolean | number | string
- marginInlineboolean | number | string
- marginInlineStartboolean | number | string
- marginInlineEndboolean | number | string
- marginBlockStartboolean | number | string
- marginBlockEndboolean | number | string
- Density modifier that adjusts the horizontal padding around the divider.
- color
- Foreground color of the divider glyph or icon.
- bgColor
- Background color of the divider element.
- Size of the divider (applies to icon mode via OrigamIcon).
API
Slots
Emplacements de contenu exposés par ce composant.
- #default
- Full override of the divider content. When provided, the divider prop and icon/text logic are bypassed.
API
Membres exposés
Propriétés et méthodes accessibles via ref template (defineExpose). Utilisés pour le contrôle programmatique.
- <T extends object>(props: T, exclude?: string[]) => Partial<T>
- Utility to forward a filtered subset of props to child components.
- Ref<string>
- Reactive CSS string generated by useStyle from the computed breadcrumbDividerStyles.
- string
- Unique style-sheet ID for this instance.
- () => void
- Injects the computed style sheet into the document.
- () => void
- Removes the injected style sheet.
- Ref<boolean>
- True once the style sheet has been injected into the DOM.
Personnalisation
Variables CSS
Propriétés CSS personnalisées exposées par ce composant. Surchargez-les pour personnaliser sans perdre la compatibilité avec le thème.
- Divider foreground color. Falls back to inherit so it matches the surrounding text by default.
- Divider background (transparent by default).
- Horizontal padding on both sides of the divider. Applied to both padding-inline-start and padding-inline-end.
- Divider opacity (1 by default).
- Density offset applied to padding calculations. comfortable: −8px, default: 0px, compact: +8px.
- Transition applied to transform and color properties.
Inclusion
Accessibilité
Rôles ARIA, navigation clavier et gestion du focus. Sourcé depuis le template réel du composant.
Notes
- OrigamBreadcrumbDivider is aria-hidden by design — it is a purely visual separator and should not be read by screen readers. The aria-hidden attribute is applied on the parent <li> by OrigamBreadcrumb.
- The v-contrast directive is applied to the root element for automatic contrast adjustment when a custom color prop is provided.
Fondation
Design tokens
Extrait des tokens de ce composant — les variables --origam-<composant>---<propriété>, déclarées dans sa feuille de tokens tenue à la main, sans étape de build.
- colorvar(--origam-color__text---secondary)
- Divider glyph color.
- dimensionvar(--origam-space---2)
- Horizontal padding around the divider character.
Interactif
Playground
Modifiez les props en direct et observez le composant se mettre à jour. Le snippet de code généré suit vos changements.
Rendu de l’aperçu en cours…
Usage
Exemples
Extraits de code prêts à coller dans vos templates.
Text divider
Icon divider
Custom slot
Écosystème
Famille
Composants du même dossier qui partagent les conventions et se composent souvent ensemble.