0.1.2 • Published 5 years ago

a-component-library v0.1.2

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

A Component library for React 16.8+

Installation

npm i a-component-library

in your top react component import css:

import '../node_modules/a-component-library/dist/a-component-library.min.css';  

in your individual components import component as such:

import {Input} from "a-component-library";

Components

Input Field

<Input />

API

NameDefaultValuesDescription
typetexttext, email, password, submit
defaultValuenonestring
placeholdernonestring
labelnonestring
titleRightfalsebool
onChangeparent's onChangecallback functionuse onChange if you want to manage input state yourself
valuenoneyour app's stateuse in combination with onChange to handle change
<Input.Group>
  <Input />
</Input.Group>
NameDefaultValuesDescription
onSubmitnonecallback function
labelRightfalsebool
titlenonestring
onChangenonecallback functionuse onChange if you want to manage state yourself

Toggle Switch

<Toggle />

Notice / Alert

<Alert />
0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago