Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

get-random-color

v2.1.1arrow_drop_down
v2.1.1
v2.1.0
v2.0.9
v2.0.8
v2.0.6
v2.0.5
v2.0.1
v1.1.1
v1.1.0
v1.0.8
v1.0.5
v1.0.4
v1.0.3
STATUS
Passing
DOWNLOADS
3,622
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
9 months ago
SIZE
565 B
function that retrun random color
1 contributor
Install get-random-color as a package?
Copied
npm i @bit/joshk.jotils.get-random-color
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
modifieddraft
chevron_left
chevron_right
getRandomColor () : string

function that retrun random color

Example
import getRandomColor from '@bit/joshk.jotils.get-random-color'
export default getRandomColor() // => #A384E7
Returns
string

hex color

Test Summary

getRandomColor check have #

Pass

getRandomColor check length of the xex color

Pass