Toolbar

Floating toolbar with toggle groups, dropdowns, and tooltips built on Radix primitives.

Install

npx shadcn@latest add https://substrate.georgedrury.co.uk/r/toolbar

Examples

"use client"

import { useState } from "react"

Components

ComponentDescription
ToolbarFixed-position container with role="toolbar" and built-in TooltipProvider
ToolbarToggleGroupSingle-select toggle group (wraps Radix ToggleGroup)
ToolbarToggleToggle button with optional tooltip and keyboard shortcut display
ToolbarSeparatorVertical divider between tool groups
ToolbarDropdownButton with dropdown menu for tool variant selection, active state highlight