1.0.0 • Published 5 months ago

@vishnu1558/casa-ui-library v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Installation

npm install @vishnu1558/casa-ui-library

Usage

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 App
1.0.0

5 months ago