Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 930 Bytes

README.md

File metadata and controls

48 lines (32 loc) · 930 Bytes

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.

demo

Sample Usage

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'

Installation

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

Supported Fields

This package supports the following react-admin fields:

import { 
    DateField,
    EmailField,
    ImageField,
    DateField,
    TextField, 
    UrlField,
} from 'ra-copy-field'