Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
material-ui-color-components
Advanced tools
Readme
material-ui-color-components
Collections of color components for
material-ui
. No dependencies, small, highly customizable and theming support !
styled-components
Full documentation is available here :
https://mikbry.github.io/material-ui-color-components/
yarn add material-ui-color-components
Or using npm
npm install material-ui-color-components
you need to have in your dependencies:
"@material-ui/core": "^4.9.5",
"material-ui-popup-state": "^1.5.3",
"prop-types": "15.7.2",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"styled-components": "^5.0.1"
material-ui-color-components
bring 5 components.
<ColorPicker/>
A popover component to display a color tool box (use ColorBox
)
import { ColorPicker } from 'material-ui-color-components';
export const Container = () => (
<div>
<ColorPicker defaultValue="transparent"/>
</div>
);
At first it display a button + an input
<ColorBox />
A component to display a color tool box
import { ColorBox } from 'material-ui-color-components';
export const Container = () => (
<div>
<ColorBox defaultValue="transparent"/>
</div>
);
<ColorInput />
An input component to display/edit color values in different format (plain, hex, rgb, hsl, hsv).
import { ColorInput } from 'material-ui-color-components';
export const Container = () => (
<div>
<ColorInput defaultValue="red"/>
</div>
);
<ColorPalette />
A component to display a grid of color buckets.
import { ColorPalette } from 'material-ui-color-components';
const palette = {
red: '#ff0000',
blue: '#0000ff',
green: '#00ff00',
yellow: 'yellow',
cyan: 'cyan',
lime: 'lime',
gray: 'gray',
orange: 'orange',
purple: 'purple',
black: 'black',
white: 'white',
pink: 'pink',
darkblue: 'darkblue',
};
export const Container = () => (
<div>
<ColorPalette palette={palette} />
</div>
);
<ColorButton />
Displays a button filled with a color
import { ColorButton } from 'material-ui-color-components';
export const Container = () => (
<div>
<ColorButton red="red"/>
</div>
);
styled-components
to have less dependencies and reduce sizeContributions welcome! Read the contribution guidelines first.
Released under MIT License
FAQs
Color components (ColorPicker) for React Material-Ui. No dependencies. It uses Hooks and support RGBA, HSVA, and more !
The npm package material-ui-color-components receives a total of 45 weekly downloads. As such, material-ui-color-components popularity was classified as not popular.
We found that material-ui-color-components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.