1.2.2 • Published 6 years ago

react-ntc v1.2.2

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

react-ntc

React Hooks module for the Name That Color project.

npm version npm-publish npm downloads

Installation

To install react-ntc with npm:

npm install react-ntc

To install react-ntc with yarn:

yarn add react-ntc

Types

interface ColorMap {
	[key: string]: string;
}

interface ColorObject {
	name: string;
	hex: string;
}

type ColorTuple = [hex: string, name: string];

Hooks

useColors()

useColorObjects()

useColorTuples()

useLookupColors(hexValues: string[])

useLookupColorObjects(hexValues: string[])

useLookupColorTuples(hexValues: string[])

useNameThatColor(hexValue: string)

Functions

formatHex(hex: string)

formatHexValues(hexValues: string)

Demo

View demo here: https://alehechka.github.io/react-ntc/

License

This project is licensed under the terms of the MIT license.

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.11

6 years ago

1.1.10

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.10

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