Skip to content

Add copy icons to react-admin fields to make it easy for users to copy field values

License

Notifications You must be signed in to change notification settings

hallman76/ra-copy-field

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

Add copy icons to react-admin fields to make it easy for users to copy field values

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published