BreadcrumbDivider

Navigation
stable

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.

Anatomy of OrigamBreadcrumbDividerSchematic of the BreadcrumbDivider component with 2 numbered parts. / 1 2 origam-breadcrumb-divider text or origam-icon
Anatomy of <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 divider is a plain string; <origam-icon> when it is an MDI icon identifier (resolved via MDI_ICONS enum check).

API

Props

Toutes les props acceptées par ce composant, avec leur type, valeur par défaut et description.

divider
requis
'/'
Separator content. A plain string is rendered as text; an MDI icon identifier (e.g. "mdi-chevron-right") renders OrigamIcon.
id
string
class
string | Array<string> | object
style
string | Array<string> | object | StyleValue
tag
string
'span'
HTML element rendered at the root. Defaults to <span> (aria-hidden on the parent <li>).
padding
boolean | number | string
paddingTop
boolean | number | string
paddingLeft
boolean | number | string
paddingBottom
boolean | number | string
paddingRight
boolean | number | string
paddingBlock
boolean | number | string
paddingInline
boolean | number | string
paddingInlineStart
boolean | number | string
paddingInlineEnd
boolean | number | string
paddingBlockStart
boolean | number | string
paddingBlockEnd
boolean | number | string
margin
boolean | number | string
marginTop
boolean | number | string
marginLeft
boolean | number | string
marginBottom
boolean | number | string
marginRight
boolean | number | string
marginBlock
boolean | number | string
marginInline
boolean | number | string
marginInlineStart
boolean | number | string
marginInlineEnd
boolean | number | string
marginBlockStart
boolean | number | string
marginBlockEnd
boolean | number | string
density
'default'
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
'default'
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.

Source
color
var(--origam-color__text---secondary)
Divider glyph color.
dimension
var(--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

vue

Icon divider

vue

Custom slot

vue

Écosystème

Famille

Composants du même dossier qui partagent les conventions et se composent souvent ensemble.