{
  "$schema": "https://design.senvenli.com/schema/component.full.json",
  "kind": "component",
  "family": "layout",
  "status": "alpha",
  "import": "@senvenli/react/layout",
  "name": "toolbar",
  "title": "Toolbar",
  "exports": [
    "Toolbar",
    "ToolbarSpacer",
    "BulkBar"
  ],
  "description": "A row of controls above a list or table; BulkBar shows actions for the selected rows.",
  "keywords": [
    "toolbar",
    "actions",
    "bulk",
    "filters",
    "selection"
  ],
  "usage": {
    "when": [
      "Filters, search and actions above a list.",
      "Actions on selected rows (BulkBar)."
    ],
    "instead": [
      {
        "use": "button-group",
        "when": "Two or three related buttons, not a full row of controls."
      },
      {
        "use": "menu",
        "when": "The actions fit under one button."
      }
    ]
  },
  "a11y": {
    "keyboard": [
      {
        "keys": "Arrow keys",
        "does": "Moves between controls."
      }
    ],
    "builtIn": [
      "One tab stop for the toolbar."
    ],
    "youProvide": [
      "A name for the toolbar."
    ]
  },
  "related": [
    "pagination"
  ],
  "genui": {
    "expose": false
  },
  "source": [
    "src/layout/toolbar.tsx"
  ],
  "props": {
    "Toolbar": [
      {
        "name": "children",
        "type": "React.ReactNode",
        "required": true,
        "origin": "own",
        "description": "Compact (32px) controls acting on the view below: search, filters, date range, view switch, export."
      },
      {
        "name": "aria-label",
        "type": "string",
        "required": true,
        "origin": "own",
        "description": "Names the toolbar (\"Order tools\").",
        "schema": {
          "type": "string"
        }
      }
    ],
    "ToolbarSpacer": [],
    "BulkBar": [
      {
        "name": "selectedCount",
        "type": "number",
        "required": true,
        "origin": "own",
        "description": "How many rows are selected; announced as it changes.",
        "schema": {
          "type": "number"
        }
      },
      {
        "name": "actions",
        "type": "React.ReactNode",
        "required": true,
        "origin": "own",
        "description": "The bulk actions (compact Buttons): \"Send reminder\", \"Export\"."
      },
      {
        "name": "onClear",
        "type": "() => void",
        "required": true,
        "origin": "own",
        "description": "Clears the selection; the bar goes with it."
      },
      {
        "name": "aria-label",
        "type": "string",
        "required": true,
        "origin": "own",
        "description": "Names the bar (\"Selected orders\").",
        "schema": {
          "type": "string"
        }
      }
    ]
  },
  "tokens": [
    "ds-background-neutral-bold",
    "ds-background-neutral-pressed",
    "ds-radius-large",
    "ds-shadow-raised",
    "ds-space-100",
    "ds-space-150",
    "ds-surface-raised",
    "ds-text",
    "ds-text-inverse"
  ],
  "strings": [
    "clearSelection",
    "newTab",
    "selectedCount"
  ],
  "quality": {
    "tests": true,
    "a11y": false,
    "docs": false,
    "visual": false,
    "dark": false,
    "rtl": false,
    "mcp": true,
    "generic": true
  }
}
