1.0.0 • Published 2 years ago
@vishnu1558/casa-ui-library v1.0.0
Installation
npm install @vishnu1558/casa-ui-libraryUsage
To use this demo UI library in your project, import the components you need from the library and use them in your React components.
import React from 'react'
import { Input, Button } from '@vishnu1558/casa-ui-library'
function App() {
return (
<div>
<Input
id="name"
disabled={false}
label="Enter your name"
message="This field is required"
error={false}
success={false}
onChange={(e) => console.log(e.target.value)}
placeholder="Enter your name here"
/>
<Button
size="medium"
primary={true}
disabled={false}
text="Click me!"
onClick={() => alert('Button clicked!')}
/>
</div>
)
}
export default App1.0.0
2 years ago