docs/components/data/DashboardContainer

DashboardContainer

Drag-and-drop card dashboard.

import { DashboardContainer } from '@ybouhjira/hyperkit';

Static examples

This component depends on app-level context (providers, services, or interactive setup) that does not fit the inline playground yet, so its examples are shown as static code.

#Props

PropTypeDefaultDescription
cards *DashboardCardConfig[]
columnsnumber
rowHeight'sm' | 'md' | 'lg' | 'xl'
gap'sm' | 'md' | 'lg'
storageKeystring
onLayoutChange(layout: CardLayout[]) => void
editableboolean
classstring
styleJSX.CSSProperties

* required prop.

#Design Tokens

This component reads the following CSS custom properties. Override them globally or per-instance to restyle it — see the CSS Variables guide.

  • --sk-accent
  • --sk-bg-primary
  • --sk-bg-secondary
  • --sk-bg-tertiary
  • --sk-border
  • --sk-dc-columns
  • --sk-dc-gap
  • --sk-dc-row-height
  • --sk-error
  • --sk-font-size-base
  • --sk-font-size-md
  • --sk-font-size-sm
  • --sk-font-size-xs
  • --sk-radius-md
  • --sk-radius-sm
  • --sk-space-lg
  • --sk-space-md
  • --sk-space-sm
  • --sk-space-xl
  • --sk-space-xs
  • --sk-text-muted
  • --sk-text-primary
  • --sk-text-secondary