Spacer

Layout & Structure
stable

Flex spacer that grows to fill available space inside a flex row or column, pushing siblings apart.

Structure

Anatomie

Décomposition visuelle de la structure interne du composant avec les appels de classes BEM.

Anatomy of OrigamSpacerSchematic of the Spacer component with 1 numbered part inside a flex container. flex container (e.g. origam-toolbar / origam-row) sibling origam-spacer (flex-grow: 1) sibling 1
Anatomy of <origam-spacer> — a single element that grows to fill all remaining space in a flex container.
1.origam-spacer
Root element. flex-grow: 1 (driven by --origam-spacer---flex-grow). No visual surface by default — purely a layout utility.

API

Props

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

id
string
class
string | Array<string> | object
style
string | Array<string> | object | StyleValue
tag
string
'div'
HTML element rendered at the root. Defaults to div.

API

Slots

Emplacements de contenu exposés par ce composant.

#default
Optional content rendered inside the spacer element.

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 a child component.
Ref<string>
Reactive CSS string generated by useStyle.
string
Unique style-sheet ID for this instance.
() => void
Injects the computed style sheet into the document. Called automatically on mount.
() => void
Removes the injected style sheet. Called automatically on unmount.
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.

Controls how greedily the spacer grows inside a flex container. Default is 1 (fill all remaining space).

Inclusion

Accessibilité

Rôles ARIA, navigation clavier et gestion du focus. Sourcé depuis le template réel du composant.

Notes

  • Spacer is a purely presentational layout element with no semantic role. Screen readers skip it entirely. No ARIA attributes are needed.

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.

Basic usage — push apart in a toolbar

vue

Usage inside a Row

vue

Écosystème

Famille

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