Skip to content

GhostToolbar reference ​

Package: @ghostvue/themes. Status: experimental (stability policy).

Themed wrapper around headless GhostToolbar. Same behavioral props; flex row/column layout from default CSS. Hand-written until GHO-13 generates manifests.

Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.

All component references

Props ​

NameTypeDefaultRequiredDescription
orientation'horizontal' | 'vertical'"horizontal"NoToolbar layout forwarded to the unstyled GhostToolbar.
loopbooleantrueNoRoving wrap behavior forwarded to the unstyled GhostToolbar.
dir'ltr' | 'rtl'—NoText direction for horizontal arrows, forwarded to the unstyled GhostToolbar.
labelstring—NoAccessible name forwarded to the unstyled GhostToolbar.
as'div' | 'section' | 'footer' | 'header'"div"NoRoot element forwarded to the unstyled GhostToolbar.

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
defaultToolbar items forwarded to the unstyled GhostToolbar.

Slot props: default ​

None declared.

Exposed members ​

NameTypeDescription
elementHTMLElement | nullRoot toolbar element inside the themed scope.
focus(options?: FocusOptions) => voidFocuses the toolbar root.
blur() => voidBlurs the toolbar root.

Parts and data attributes ​

AttributeValueDescription
data-partrootThe toolbar element inside the display:contents themed scope.

CSS variables ​

NameDescription
--ghost-space-gap-smGap between toolbar controls.

Accessibility ​

Role: toolbar. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/toolbar/.

Required ARIA attributes: aria-label.

Keyboard ​

KeyActionAutomated browser test
ArrowLeftPrevious enabled item when orientation is horizontal.Not reviewed
ArrowRightNext enabled item when orientation is horizontal.Not reviewed
ArrowUpPrevious enabled item when orientation is vertical.Not reviewed
ArrowDownNext enabled item when orientation is vertical.Not reviewed
HomeFirst enabled item.Not reviewed
EndLast enabled item.Not reviewed

Verification ​

Each category is reviewed separately. Automated keyboard and axe results do not attest manual or assistive-technology review.

CategoryStatusEvidence
Automated keyboardNot reviewedNo declared key is mapped to a browser test yet.
Manual interactionNot reviewedNo review recorded.
Assistive technologyNot reviewedNo review recorded.

Examples ​

toolbar/editor-actions ​

Example source

Document formatting toolbar

Themed toolbar with grouped formatting controls, vertical separator, and roving focus.

Document toolbarNo formatting action applied yet

toolbar/themed ​

Example source

Themed

Flex layout from @ghostvue/themes.

No annotation added