preskok/ui

A toolbar component for grouping action buttons.

Installation

pnpm dlx @preskok-org/ui@latest add toolbar

Usage

import { Toolbar } from "@/registry/preskok/ui/preskok-ui/toolbar"
 
export function ToolbarDemo() {
  return (
    <Toolbar>
      <Toolbar.Item>Bold</Toolbar.Item>
      <Toolbar.Item>Italic</Toolbar.Item>
      <Toolbar.Separator />
      <Toolbar.Item>Link</Toolbar.Item>
    </Toolbar>
  )
}