React components including Button and Dropdown.
🏠 Homepage
npm i test-tark-components
Custom dropdown styles
Property | Type | Required | Default value | Description |
---|---|---|---|---|
data | arrayOf | yes | ['Option 1', 'Option 2, 'Option 3'] | Array of options |
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 |
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'/>
)
}
👤 Aman Chhetri
- Github: @amanchhetri
Give a ⭐️ if this project helped you!