Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/flexcodelabs/flecodelabs-input


https://github.com/flexcodelabs/flecodelabs-input

Last synced: 3 days ago
JSON representation

Awesome Lists containing this project

README

        

@flexcodelabs/input

[![npm](https://img.shields.io/npm/v/@flexcodelabs/input)](https://www.npmjs.com/package/@flexcodelabs/input) [![NPM](https://img.shields.io/npm/l/@flexcodelabs/input)](https://www.npmjs.com/package/@flexcodelabs/input)

[Package Name](#@flexcodelabs/input)

- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Examples](#examples)
- [Props](#props)

## Features

- List of features

## Installation

`npm install @flexcodelabs/input`

or

`yarn add @flexcodelabs/input`

## Usage

```js
...
import Input from '@flexcodelabs/input';

// Normal input

// password input

// textarea

// Input with error message

// Input with success message

```

## Examples

[Source code](https://github.com/flexcodelabs/flecodelabs-input)

## Props

| Name | Type | Default | Required | Description |
| ------------ | -------------------------------------------------------------------- | ------- | -------- | ------------------------------------------- |
| label | `string` | - | `false` | input label |
| disabled | `boolean` | - | `false` | input disabled status |
| autoComplete | `string` | - | `false` | |
| inputClass | `string` | - | `false` | input custom class name |
| inputStyle | `CSSProperties` | - | `false` | input custom styles |
| error | `string` | - | `false` | error message |
| onChange | `func()` | - | `false` | |
| type | `string` | - | `false` | input type |
| success | `string` | - | `false` | success message |
| value | `string or number` | - | `true` | input value |
| name | `string` | - | `false` | input name |
| required | `boolean` | - | `false` | whether input field is required |
| showLabel | `boolean` | `true` | `false` | show or hide input label |
| textarea | `boolean` | - | `false` | whether to display textarea or normal input |
| placeholder | `string` | - | `false` | |
| showIcon | `ReactNode` | - | `false` | show icon for password input field |
| hideIcon | `ReactNode` | - | `false` | hide icon for password input field |
| className | `string` | - | `false` | custom class name |
| style | `CSSProperties` | - | `false` | custom styles |
| inputMode | `search, text, tel, none, url, email, numeric, decimal or undefined` | - | `false` | |