1.0.23 • Published 4 years ago
sk-react-component v1.0.23
sk-react-component
react component library with some basic component like button, input findGithubRepo
Installation
# using npm
npm install sk-react-component
# using yarn
yarn add sk-react-component
Usage
# using require
const {
Button,
Input,
FindGithubRepo
} = require('sk-react-component');
# using import
import {
Button,
Input,
FindGithubRepo
} from 'sk-react-component';
Example
Using Button:
<Button
width={width} // width of the button -> default : 100
height={height} // height of the button -> default : 30
bgColor={bgColor} //background color -> default : blue
textColor={textColor} // color of the text
onClick = {onClick} // event handler for onclick
text = {text} // text of the button
/>
Using Input:
<Input
type={'text'} // type of the input -> default : text
name={name} // name attribute of the input element
value={value} // value attribute of the input
onChange={() => {}} // event handler for onChange
/>
Using FindGithubRepo:
<FindGithubRepo
mainDivCss = {{ width: "100%",height: "100%" }} // css for main Div
searchDivCss = {{borderBottom: "1px solid #EDEDED"}} // css for search div or upper div
resultDivCss = {{ width: "100%",height: "100%" }} // css for result show div or lower div
/>
1.0.23
4 years ago
1.0.22
4 years ago
1.0.21
4 years ago
1.0.20
4 years ago
1.0.19
4 years ago
1.0.18
4 years ago
1.0.17
4 years ago
1.0.16
4 years ago
1.0.15
4 years ago
1.0.14
4 years ago
1.0.13
4 years ago
1.0.12
4 years ago
1.0.11
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