ResponsiveDatagrid

A component to render SimpleList or Datagrid based on screen size.

Usage

import { ResponsiveDatagrid } from '@ra-libs/react';

<ResponsiveDatagrid primaryText={(record) => `${record.firstName} ${record.lastName}`} secondaryText={(record) => `${record.company}`}>
  <TextField source="firstName" />
  <TextField source="lastName" />
  <TextField source="company" />
</ResponsiveDatagrid>;

Props

check react-admin SimpleList and Datagrid props

Last updated