Skip to content

Add ToolbarSeparator component and split Toolbar documentation into focused pages#19

Merged
einari merged 3 commits intomainfrom
copilot/add-toolbar-sections-support
Mar 3, 2026
Merged

Add ToolbarSeparator component and split Toolbar documentation into focused pages#19
einari merged 3 commits intomainfrom
copilot/add-toolbar-sections-support

Conversation

Copy link
Contributor

Copilot AI commented Mar 3, 2026

Adds support for visual section dividers within a single Toolbar, as seen in canvas-based tools (Miro, Figma). The separator automatically renders perpendicular to the toolbar direction.

Added

  • ToolbarSeparator component — horizontal rule in vertical toolbars, vertical rule in horizontal toolbars; includes correct role="separator" and aria-orientation
  • WithSeparators Storybook story demonstrating a horizontal toolbar with grouped sections
  • CSS classes toolbar-separator--in-vertical / toolbar-separator--in-horizontal with align-self: stretch for automatic cross-axis sizing
<Toolbar orientation='horizontal'>
    <ToolbarButton icon='pi pi-th-large' tooltip='Overview' tooltipPosition='bottom' />
    <ToolbarSeparator orientation='horizontal' />
    <ToolbarButton icon='pi pi-minus' tooltip='Zoom out' tooltipPosition='bottom' />
    <ToolbarButton icon='pi pi-plus' tooltip='Zoom in' tooltipPosition='bottom' />
    <ToolbarSeparator orientation='horizontal' />
    <ToolbarButton icon='pi pi-question-circle' tooltip='Help' tooltipPosition='bottom' />
</Toolbar>

Changed

  • Documentation/Toolbar/index.md reduced to overview + components table; each topic split into its own page (basic-usage, orientation, active-state, context-switching, fan-out, multiple-groups, tooltip-position, sections)
  • Documentation/Toolbar/toc.yml updated to list all new pages
  • ToolbarSeparator and ToolbarSeparatorProps exported from Source/Toolbar/index.ts
Original prompt

This section details on the original issue you should resolve

<issue_title>Add support for sections in the toolbar</issue_title>
<issue_description>See the image:

Image

It has different sections separated with a vertical line.
We want to support this. When toolbar is vertically, the line obviously need to be horizontally.

Fix the documentation by splitting out every topic in the Overview page for the toolbar as separate pages and add a page for this new capability.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…eparate pages

Co-authored-by: einari <134365+einari@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for sections in the toolbar Add ToolbarSeparator component and split Toolbar documentation into focused pages Mar 3, 2026
@einari einari marked this pull request as ready for review March 3, 2026 11:23
@einari einari added the minor label Mar 3, 2026
@einari einari merged commit 308ece0 into main Mar 3, 2026
3 checks passed
@einari einari deleted the copilot/add-toolbar-sections-support branch March 3, 2026 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for sections in the toolbar

2 participants