2.0.4 • Published 6 years ago

@thevelops/tv-buttons v2.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
6 years ago

tv-buttons

A collection of button components

// install
npm i -S @thevelops/tv-buttons

Components

Docs

Button

import Button from "@thevelops/tv-buttons/dist/lib/Button";
@import "path/to/node_modules/@thevelops/tv-buttons/dist/styles/button.styl"
FieldTypeDescription
labelstring or node(required)
onClickfunc(required)
classNamestring
disabledbool
valuestring
typestringbutton, submit or reset. default: button
eventsobjectobject with one or more React Syntethic Events

Floating Action Button

import FloatingActionButton from "@thevelops/tv-buttons/dist/lib/FloatingActionButton";
@import "path/to/node_modules/@thevelops/tv-buttons/dist/styles/floatActionButton.styl"
FieldTypeDescription
iconstring(required)
onClickfunc(required)
classNamestring
fixedboolfixes the button in the bottom right corner of screen. default: false
eventsobjectsobject with one or more React Synthetic Events

Switch Button

import SwitchButton from "@thevelops/tv-buttons/dist/lib/SwitchButton";
@import "path/to/node_modules/@thevelops/tv-buttons/dist/styles/switchButton.styl"
FieldTypeDescription
onClickfunc(required)
enabledboolean(required)
classNamestring
onLabelstringlabel for the ON position (right)
offLabelstringlabel for the OFF position (left)

Development

For delevepment checkout this section.

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago