XiodUI
HomeDocs
OverviewComponentsThemes & ColorsChangelog
⌘ K

Components

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

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

Dashboard Grid

Previous: Corner BadgeNext: Date Picker

A responsive, drag-and-drop dashboard grid layout canvas with collision prevention, auto-compaction, and resizable tiles.

Preview

Loading Preview...

Installation

bun add xiod-ui

Usage

Imports

1import {2  DashboardGrid,3  DashboardTile,4  DashboardTileControls,5  DashboardTileHandle,6  DashboardTileHeader,7  DashboardTileResizeHandle,8  DashboardTileTitle9} from "xiod-ui/dashboard-grid";

Anatomy

1<DashboardGrid>2  <DashboardTileHeader />3  <DashboardTileTitle />4  <DashboardTile />5  <DashboardTileControls />6  <DashboardTileHandle />7  <DashboardTileResizeHandle />8</DashboardGrid>

API Reference

Detailed documentation of properties and options.

DashboardGrid

PropTypeDefaultDescription
layoutReq
DashboardTileData[]
-
cols
number
|BreakpointCols
|undefined
12
breakpoints
Breakpoints
|undefined
{ lg: 1200, md: 996, sm: 768, xs: 480, xxs: 0, }
rowHeight
number
|undefined
60
margin
[number, number]
|undefined
[12, 12]
containerPadding
[number, number]
|undefined
[12, 12]
compactType
CompactType
|undefined
vertical
preventCollision
boolean
|undefined
false
isDraggable
boolean
|undefined
true
isResizable
boolean
|undefined
true
showGridLines
boolean
|undefined
false
onLayoutChange
((layout: DashboardTileData[]) => void)
|undefined
-
onTileRemove
((id: string) => void)
|undefined
-
render
ReactElement<unknown, string
|JSXElementConstructor<any>>
|ComponentRenderFn<HTMLProps, {}>
|undefined
-Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a `ReactElement` or a function that returns the element to render.
variant
"default"
|"canvas"
|"ghost"
|"bordered"
|null
|undefined
default

DashboardTile

PropTypeDefaultDescription
idReq
string
-
render
ReactElement<unknown, string
|JSXElementConstructor<any>>
|ComponentRenderFn<HTMLProps, {}>
|undefined
-Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a `ReactElement` or a function that returns the element to render.
variant
"default"
|"expressive"
|"flat"
|null
|undefined
default
isDragging
boolean
|null
|undefined
-
isResizing
boolean
|null
|undefined
-
isStatic
boolean
|null
|undefined
-

DashboardTileControls

PropTypeDefaultDescription
id
string
|undefined
-
render
ReactElement<unknown, string
|JSXElementConstructor<any>>
|ComponentRenderFn<HTMLProps, {}>
|undefined
-Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a `ReactElement` or a function that returns the element to render.

DashboardTileHandle

PropTypeDefaultDescription
id
string
|undefined
-
render
ReactElement<unknown, string
|JSXElementConstructor<any>>
|ComponentRenderFn<HTMLProps, {}>
|undefined
-Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a `ReactElement` or a function that returns the element to render.

DashboardTileHeader

PropTypeDefaultDescription
id
string
|undefined
-
render
ReactElement<unknown, string
|JSXElementConstructor<any>>
|ComponentRenderFn<HTMLProps, {}>
|undefined
-Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a `ReactElement` or a function that returns the element to render.

DashboardTileResizeHandle

PropTypeDefaultDescription
render
ReactElement<unknown, string
|JSXElementConstructor<any>>
|ComponentRenderFn<HTMLProps, {}>
|undefined
-Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a `ReactElement` or a function that returns the element to render.

DashboardTileTitle

PropTypeDefaultDescription
render
ReactElement<unknown, string
|JSXElementConstructor<any>>
|ComponentRenderFn<HTMLProps, {}>
|undefined
-Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a `ReactElement` or a function that returns the element to render.
Corner BadgeDate Picker