cbt-atoms
v1.1.0
Published
Installation
Downloads
48
Readme
React Color Component
Installation
npm install --save cbt-atoms
How To Use
First import this component where you want to use it
import {InputDate} from "cbt-atoms"
Then just renders it
<InputDate />
Props
| Prop | Description | Default value | | ------ | :-------------------: | :-------------: | | color | Sets background color | blue | | width | Sets width | 100 | | height | Sets height | 100 | | text | Sets inner text | empty string |
Example
import React, { Component } from "react";
import {InputDate} from "cbt-atoms";
class App extends Component {
render() {
return (
<InputDate height={150} color="red" text="Hello World!" />
);
}
}
export default App;