This package extends a few of react-admin's built-in fields to include a little copy icon that makes it easy to copy the field's value.
Instead of importing Fields from react-admin
, import them from ra-copy-field
import React, {useState} from 'react'
// import {
// TextField
// } from 'react-admin'
import {
TextField
} from 'ra-copy-field'
This package isn't published on npm. To install directly from github:
npm i git+https://github.com/hallman76/ra-copy-field.git
# OR
yarn add git+https://github.com/hallman76/ra-copy-field.git
This package supports the following react-admin fields:
import {
DateField,
EmailField,
ImageField,
DateField,
TextField,
UrlField,
} from 'ra-copy-field'