1.0.4 • Published 4 years ago

ts-react-tag v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

ts-react-tag

example-pic

Look and Feel

Abstract:

Here you will find a ReactJS component with which you can display your data as tag.

Features:

  • Design based on Material-UI
  • Properties to help you with an individual design
  • Functions as properties to help with the further use of the data
  • TypeScript implementation
  • ...

Installation

npm install --save ts-react-tag

Usage

import {
    Tag
} from 'ts-react-tag';

...

<Tag />

CSS

./node_modules/ts-react-tag/dist/index.css;

Properties

PropertyTypeRequiredDefaultInfo
avatarSrcstringfalseGravatar standard iconsource for your avatar
colorstringfalsedefaultdefault, primary, seconday
disabledbooleanfalsefalse
hideOnDeletebooleanfalsetrue
idstringfalse'TsdevReactTag'
isHiddenbooleanfalsefalse
labelstringfalse'Label'
labelMaxLengthnumberfalse30max characters for label
onDeletefuncfalsenoopfirst argument is an object with properties
showAvatarbooleanfalsetrue
showDeletebooleanfalsetrue
showValuebooleanfalsetrue
subClassstringfalse''
valuenumberfalse0
valueColorstringfalseprimarydefault, primary, seconday
variantstringfalsedefaultdefault, outlined