Skip to main content

<IdField>

Displays a record's ID field. By default it links to the record's detail page (if one exists) and is hidden in forms.

Usage​

<IdField />

Custom Source​

If your resource uses a different field for its identifier, override source.

<IdField source="uuid" />

Props​

Accepts the same props as <TextField>. Defaults:

  • source → "id"
  • link → "detail" (if the resource has a detail page, otherwise no link)
  • input → false (hidden in create/edit forms)
PropTypeDefaultDescription