githubEdit

ResponsiveDatagrid

A component to render SimpleListarrow-up-right or Datagridarrow-up-right 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 SimpleListarrow-up-right and Datagridarrow-up-right props

Last updated