XiodUI
HomeDocs
OverviewComponentsStyling & CustomizationChangelog

Components

  • Accordion
  • Agent Steps
  • Alert
  • Alert Dialog
  • Aspect Ratio
  • Autocomplete
  • Avatar
  • Badge
  • Breadcrumb
  • Button
  • Button Group
  • Button Split
  • Calendar
  • Card
  • Carousel
  • Checkbox
  • Circular Progress
  • Collapsible
  • Color Picker
  • Combobox
  • Command
  • Context Menu
  • Copy To Clipboard
  • Corner Badge
  • Dashboard Grid
  • Date Picker
  • Dialog
  • Dot Matrix
  • Draggable
    Updated
  • Drawer
  • Empty
  • Field
  • Fieldset
  • File Upload
    Updated
  • Form
  • Frame
  • Gauge
  • Grid
  • Group
  • Input
  • Input Group
  • Input OTP
  • Input Payment
  • Input Phone
    Updated
  • Input Sensitive
  • Kbd
  • Kinetic Click
  • Label
  • List Box
    Updated
  • Loader
  • Marker
  • Menu
  • Menubar
  • Message
  • Meter
  • Morphic Toast
  • Navigation Menu
  • Number Field
  • Option Picker
  • Orb
  • Pagination
  • Popover
  • Preview Card
    Updated
  • Progress
  • Radio
  • Resizable
  • Ruler Picker
  • Scroll Area
  • Scroll Bar
  • Select
  • Separator
  • Sidebar
  • Skeleton
  • Slider
  • Sortable
  • Switch
  • Table
  • Tabs
  • Text
  • Textarea
  • Timeline
  • Toast
  • Toggle
  • Toggle Group
  • Toolbar
  • Tooltip
  • Waveform
  • Wheel Picker

Loading...

Preview Skeleton

Installation Skeleton

Usage Skeleton

API Reference Skeleton

Sponsors

Support the development of XiodUI and help us build the best component library on Earth.

+++
Sponsor on GitHub

Toolbar

Previous: Toggle GroupNext: Tooltip

A row of buttons and controls, navigable with the arrow keys.

Preview

Loading Preview...

Installation

bun add xiod-ui

Usage

Imports

1import {2  Toolbar,3  ToolbarButton,4  ToolbarGroup,5  ToolbarInput,6  ToolbarLink,7  ToolbarSeparator8} from "xiod-ui/toolbar";

Anatomy

1<Toolbar>2  <ToolbarSeparator />3  <ToolbarGroup>4    <ToolbarButton />5  </ToolbarGroup>6</Toolbar>

API Reference

Detailed documentation of properties and options.

Toolbar

Accepts className, style and render, plus every native attribute of the element it renders.

PropTypeDefaultDescription
disabled
boolean
–

When true the item is disabled.

loopFocus
Toggle GroupTooltip
boolean
true

If true, using keyboard navigation will wrap focus to the other end of the toolbar once the end is reached.

orientation
"horizontal"|"vertical"
'horizontal'

The orientation of the toolbar.

ToolbarButton

Accepts className, style and render, plus every native attribute of the element it renders.

PropTypeDefaultDescription
disabled
boolean
false

When true the item is disabled.

focusableWhenDisabled
boolean
true

When true the item remains focusable when disabled.

nativeButton
boolean
true

Whether the component renders a native <button> element when replacing it via the render prop. Set to false if the rendered element is not a button (for example, <div>).

ToolbarGroup

Accepts className, style and render, plus every native attribute of the element it renders.

PropTypeDefaultDescription
disabled
boolean
false

When true all toolbar items in the group are disabled.

ToolbarInput

Accepts className, style and render, plus every native attribute of the element it renders.

PropTypeDefaultDescription
defaultValue
string | number | readonly string[]
–

The value the input starts with, when it isn't controlled.

disabled
boolean
false

When true the item is disabled.

focusableWhenDisabled
boolean
true

When true the item remains focusable when disabled.

ToolbarLink

Accepts className, style and render, plus every native attribute of the element it renders.

ToolbarSeparator

Accepts className, style and render, plus every native attribute of the element it renders.

PropTypeDefaultDescription
orientation
"horizontal"|"vertical"
'horizontal'

The orientation of the separator. Defaults to the opposite of the toolbar's orientation, so a horizontal toolbar renders vertical separators.