react-controlled-components
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

components

A few Controlled components for React.js that i use in my apps.

NPM

What is a controlled component?

A controlled component usually does not maintain his own value as a state. It gets it from a parent component, along with a function to let the parent know an action to change the value has occurred.

How to use

  1. Install the package using npm: npm install --save react-controlled-components
  2. Import the required components (for example: import { Button } from 'react-controlled-components';)
  3. That's it! the components are ready for use.

Basic Components

Image

A simple image component that lets you provide a placeholder source incase the main one fails.

ImageLink

An image that will navigate to a provided url when clicked.

TextInput

A simple text input.

CheckBox

A simple toggle component.

Button

A simple button.

Package Sidebar

Install

npm i react-controlled-components

Weekly Downloads

17

Version

2.0.0

License

ISC

Last publish

Collaborators

  • liorzisman