1.0.23 • Published 3 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
3 years ago
1.0.22
3 years ago
1.0.21
3 years ago
1.0.20
3 years ago
1.0.19
3 years ago
1.0.18
3 years ago
1.0.17
3 years ago
1.0.16
3 years ago
1.0.15
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago