0.2.1 ā€¢ Published 2 years ago

test-tark-components v0.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Tark React Components

React components including Button and Dropdown.

šŸ  Homepage

Install

npm i test-tark-components

Components

1. Dropdown

Custom dropdown styles

PropertyTypeRequiredDefault valueDescription
dataarrayOfyes'Option 1', 'Option 2, 'Option 3'Array of options

Screenshot


Dropdown

2. Button

Custom button styles

PropertyTypeRequiredDefault valueDescription
variantstringno'Light'Style of the button
sizestringno'medium'Size of the button
labelstringno'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!