0.1.22 • Published 2 years ago

custom_react_project_lib v0.1.22

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

custom_react_project_lib

Customisable componentas for react

npm.io npm.io npm.io

Features

  • configurable via props
  • total custom components overrides for all internals via render prop callbacks (with access to internal props, state and methods)
  • stylable via css (or custom components)
  • portal support for rendering button outside local DOM tree. e.g. in document.body
  • auto position
  • small bundle size

Installation

npm install --save custom_react_project_lib

Web site

Web site, docs and demo

Usage

import:

import { FormButtonCustom } from 'custom_react_project_lib';

and use as:

<FormButtonCustom variant={"secondary"} showLoader={isFormSubmit} />

all props are optional

Help and Contributions

How to help/contribute

  • fix issues, pull request are very welcome
  • write, improve docs
  • write tests (we use jest)
  • suggest features and improvements

API

Component props

PropTypeDefaultDescription
sizestring'md'size strings values
otherPropsarray[]Available options, (option with key disabled: true will be disabled)
disabledboolfalseIf true, button will always stay open

License

MIT# custom_react_project_lib