1.0.1 • Published 2 years ago
cns-ui v1.0.1
cns-ui
Made with create-react-library
📦 Install
npm install cns-ui
yarn add cns-ui
🔨 Usage
import { IconButton, Button } from 'cns-ui'
import 'cns-ui/dist/index.css'
const App = () => {
return (
<>
<IconButton text="Twitter" type="twitter"/>
<IconButton text="Linkedin" type="linkedin"/>
<IconButton text="Github" type="github"/>
<Button text="Primary" type="primary"/>
<Button text="Warning" type="warning"/>
<Button text="Success" type="success"/>
<Button text="Danger" type="danger"/>
<Button text="Light" type="light"/>
<Button text="Dark" type="dark"/>
</>
)
}
✨ Components Overview
Button has 2 properties.
- Type : {primary, success, warning, danger, light, dark}
- Text : any text.
IconButton has 2 properties.
- Type : {twitter, linkedin, github}
- Text : your social media username
License
MIT © cnsbelirdi