Skip to Content
SmartUI

Data Grid

Full data table: search, filter, sort, multi-select and bulk actions.

Bookings
PatientStatusSessionPrice
Budi SantosoSC-27F7K3ArrivedMorning, 07.00 to 11.00Rp125.000
Dewi LestariSC-28F7K4ScheduledAfternoon, 11.00 to 15.00Rp480.000
Muhammad RifqiSC-25F7K1ArrivedAfternoon, 11.00 to 15.00Rp95.000
Rahma BatariSC-24F7K0ScheduledMorning, 07.00 to 11.00Rp340.000
Siti AminahSC-26F7K2ScheduledEvening, 15.00 to 19.00Rp210.000

Loading

Bookings
PatientStatusSessionPrice

Empty

Bookings
PatientStatusSessionPrice
No bookings yet

Check the spelling, or search by booking code.

Usage

import { DataGrid } from '@smartui/react';
import '@smartui/react/styles.css';

When to use

  • Lists that need searching, filtering or sorting.

When not to use

  • The app on phones: use List Row.

Props

PropTypeDefaultDescription
labelstringrequired
dataT[]required
columns{ id, header, cell, align?, allowsSorting?, isRowHeader?, width? }[]required
getRowId(row) => stringrequired
selectionMode'none' | 'multiple''none'
selectedKeys, onSelectionChangeSelection-
sortDescriptor, onSortChangeSortDescriptor-
density'md' | 'sm''md'
toolbar, footer, emptyStateReactNode-
isLoadingbooleanfalse

Accessibility

  • Announced as a table with column headers.
  • Arrow keys move between cells; Space selects a row.

On this page