Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

A fantastically simple tagging component for your React projects

License

Notifications You must be signed in to change notification settings

stahlmanDesign/react-tags

 
 

Repository files navigation

React-Tags inline styles (fork for inline styles)

This is a fork of https://github.com/prakhar1989/react-tags v4.3.0

It adds the ability to change the tag colours at run-time, using a calculated colour:

Inline styles for background and text color

Sometimes classes are not enough. For example, if you want your tag to be a color that is only known at run-time, or from user input, you need to modify the style and apply a specific color property that can't be defined ahead of time in a class. To avoid direct DOM manipulation using something like JQuery, use these properties that set the inline style of the tag:

	<ReactTags
		backgroundColor={ someCalculatedColor }
		textColor={ someCalculatedColor }
	...>

##See original repo for full documentation: https://github.com/prakhar1989/react-tags

About

A fantastically simple tagging component for your React projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 94.7%
  • HTML 2.9%
  • CSS 2.4%