1.1.0 • Published 6 years ago

react-tags-component v1.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

React-Tags-Component

React-tags-component is a component for tags management. It consists of a customizable label and a button to which you can attach an action (the button can be visible or hidden). You can also customize the tag in all its graphic features.

Installation

npm install --save react-tags-component

Demo

Demo React Tags Component

Import

import TagsComponent from "react-tags-component";

Usage

Using this component is very simple , once you import you can use a list to generate how many tags you want.

{
  ["Mario Rossi", "Luca Verdi", "React Component", "Gianni Giallo"].map(el => (
    <TagsComponent textLabel={el} />
  ));
}

Options

OptionsTypeDefaultDescription
hideShadowTagsBooleanfalseAllows the shadow under the component to be visible
colorTextLabelString#5c6f82Allows you to change the color of the label
textLabelStringSanf TagsThat’s the tags label value
iconComponentElementDelete ComponentAllows you to switch an item that will replace the default icon
borderTagsColorString#dfe4f2Allows you to change the color of the component border
backgroundTagsString#fcfdffAllows you to change the color of the component background
deleteTagFunctionRemove the tagsAllows you to change the function associated with the icon click
hideIconBooleanFalseAllows you to hide the icon
1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago