Skip to main content

Input

v.3.0.1

Installation

yarn add @mercell/input-react

Usage

Using the Input component is as simple as importing it like this.

import {
Input,
InputLeftAddon,
InputRightAddon,
InputContainer,
InputLeftElement,
InputRightElement,
} from '@mercell/input-react';
Live Editor
Result

Types, definitions, etc.

Input
Input has type JSX.IntrinsicElements['input'] with possible reference to be passed.
InputLeftElement
InputLeftElement has type JSX.IntrinsicElements['span'] with possible reference to be passed.
InputRightElement
InputRightElement has type JSX.IntrinsicElements['span'] with possible reference to be passed.
InputLeftAddon
InputLeftAddon has type JSX.IntrinsicElements['div'] with possible reference to be passed.
InputRightAddon
InputRightAddon has type JSX.IntrinsicElements['div'] with possible reference to be passed.