1.2.2 • Published 4 years ago

react-ntc v1.2.2

Weekly downloads
5
License
MIT
Repository
github
Last release
4 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

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.11

4 years ago

1.1.10

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago