a-component-library

0.1.2 • Public • Published

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

Name Default Values Description
type text text, email, password, submit
defaultValue none string
placeholder none string
label none string
titleRight false bool
onChange parent's onChange callback function use onChange if you want to manage input state yourself
value none your app's state use in combination with onChange to handle change
<Input.Group>
  <Input />
</Input.Group>
Name Default Values Description
onSubmit none callback function
labelRight false bool
title none string
onChange none callback function use onChange if you want to manage state yourself

Toggle Switch

<Toggle />

Notice / Alert

<Alert />

Readme

Keywords

none

Package Sidebar

Install

npm i a-component-library

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

6.05 kB

Total Files

5

Last publish

Collaborators

  • partyblanket