0.2.1 ⢠Published 4 years ago
test-tark-components v0.2.1
Tark React Components
React components including Button and Dropdown.
š Homepage
Install
npm i test-tark-componentsComponents
1. Dropdown
Custom dropdown styles
| Property | Type | Required | Default value | Description | 
|---|---|---|---|---|
| data | arrayOf | yes | 'Option 1', 'Option 2, 'Option 3' | Array of options | 
Screenshot

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
 

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
Author
š¤ Aman Chhetri
- Github: @amanchhetri
Show your support
Give a āļø if this project helped you!