React Admin List Component (list/List.tsx)

react-admin · packages/ra-ui-materialui/src/list/List.tsx · typescript · MIT
ui, fw:react, fw:mui

A high-level UI component that renders list layouts, including filters, pagination, and actions. Use this to display data collections fetched from REST APIs in admin interfaces.

// Source: https://github.com/marmelab/react-admin | License: MIT | Copyright 2016-present, Francois Zaninotto, Marmelab
// Provided via justclaw.it.com; keep this notice with the code.
import * as React from 'react';
import { ListBase, ListBaseProps, RaRecord } from 'ra-core';
import { useThemeProps } from '@mui/material/styles';

import { ListView, ListViewProps } from './ListView';
import { Loading } from '../layout';

/**
 * List page component
 *
 * The <List> component renders the list layout (title, buttons, filters, pagination),
 * and fetches the list of records from the REST API.
 *
 * It then delegates the rendering of the list of records to its child component.
 * Usually, it's a <Datagrid>, responsible for displaying a table with one row for each post.
 *
 * The <List> compone

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key