A colorful boolean indicator for React.
Using npm
:
npm install --save react-bulb
Using yarn
:
yarn add react-bulb
import React from 'react';
import Bulb from 'react-bulb';
export default () => (
<Bulb
size={60}
color="green"
/>
);
Prop | Type | Default | Required |
---|---|---|---|
style |
shape | {} |
No |
size |
number | 40 |
No |
color |
string | 'red' |
No |