Introducing PrimeReact v11-alpha 🎉Discover Now

Toolbar

Toolbar is a grouping component for buttons and other content.

preview

Installation#

npx shadcn@latest add @primereact/toolbar

Usage#

import { Toolbar, ToolbarCenter, ToolbarEnd, ToolbarStart } from '@/components/ui/toolbar';
<Toolbar>
    <ToolbarStart />
    <ToolbarCenter />
    <ToolbarEnd />
</Toolbar>

Examples#

Basic#

Combines action buttons and controls in a horizontal bar.

basic-demo

Custom#

A customized toolbar with navigation bar functionality.

custom-demo

API#

Sub-Components#

See Primitive API for ToolbarRoot, ToolbarStart, ToolbarCenter, ToolbarEnd component documentation.

Hooks#

See Headless API for useToolbar hook documentation.

Accessibility#

See Toolbar Primitive for WAI-ARIA compliance details and keyboard support.