ComponentsDashboard

Dashboard

A Dashboard grid layout component, based on react-grid-layout. The children elements are grid items and must be keyed.

GitHub LogoSource Code

This is a lab component and as such is not considered stable and may be subject to breaking changes in future releases. You need to import it from @hitachivantara/uikit-react-lab.


Usage

The following example shows how to use the HvDashboard component. The layout prop allows you to define the layout of the dashboard. Please check the react-grid-layout library documentation for information on the properties that can be used in the layout items. Each item in the layout should have a unique key that maps to the i property in the layout.

Item 1

Item 2

Item 3

Item 4

Items content

You can use anything as a Dashboard item. The following example showcases a dashboard with different types of charts that you can resize and drag. Use the buttons to toggle dragging and resizing.