Skip to content

amanchhetri/react-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tark React Components

React components including Button and Dropdown.

Install

npm i test-tark-components

Components

1. Dropdown

Custom dropdown styles

Property Type Required Default value Description
data arrayOf yes ['Option 1', 'Option 2, 'Option 3'] Array of options

Screenshot


Dropdown

2. Button

Custom button styles

Property Type Required Default value Description
variant string no 'Light' Style of the button
size string no 'medium' Size of the button
label string no 'Button' Label of the button

Screenshot


Button with variant prop Button with size prop


Usage/Examples

import {Dropdown, Button} from 'test-tark-components';

function App() {
  const data = ['Option A', 'Option B', 'Option C'];

  return (
        <Dropdown data={data} />
        <Button variant='Light' size='medium' label='Light'/>
        <Button variant='Dark' size='medium' label='Dark'/>
        <Button variant='Light' size='small' label='Small'/>
        <Button variant='Light' size='large' label='Large'/>
  )
}

License

MIT

Author

👤 Aman Chhetri

Show your support

Give a ⭐️ if this project helped you!


About

React components like Buttons, Dropdowns

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published