5.0.0 • Published 10 months ago

@lendi-ui/text-input v5.0.0

Weekly downloads
513
License
ISC
Repository
-
Last release
10 months ago

@lendi-ui/input-text

LUI input text component.

Installation

yarn add @lendi-ui/input-text

Usage

import Input from '@lendi-ui/input-text';
<Input
  size="md"
  placeholder="input here .."
  onChange={() => {}}
  isFullWidth={true}
  after={<span style={{ width: '24px', height: '24px' }}>x</span>}
/>;

Properties

<PropTable>
  <PropTable.Entry name="after" type="React.ReactNode" description="Content after the input content."/>
  <PropTable.Entry name="before" type="React.ReactNode" description="Content before the input content."/>
  <PropTable.Entry name="isAutoFocus" type="boolean" defaultValue={false} description="Whether the Input is automatically focused on when form loads."/>
  <PropTable.Entry name="isDisabled" type='boolean' defaultValue="false" description="Whether the input is disabled."/>
  <PropTable.Entry name="isFullWidth" type='boolean' defaultValue="false" description="Whether the input is full-width."/>
  <PropTable.Entry name="isError" type='boolean' defaultValue="false" description="Whether the input content is valid."/>
  <PropTable.Entry name="isInverse" type='boolean' defaultValue="false" description="Whether the input is inversed."/>
  <PropTable.Entry name="isReadOnly" type="boolean" defaultValue={false} description="Whether the Input is read-only."/>
  <PropTable.Entry name="isRequired" type="boolean" defaultValue={false} description="Whether the Input is required."/>
  <PropTable.Entry name="onBlur" type='() => void' description="Blur handler."/>
  <PropTable.Entry name="onChange" required={true} type='() => void' description="Change handler."/>
  <PropTable.Entry name="onFocus" type='() => void' description="Focus handler."/>
  <PropTable.Entry name="placeholder" type='string' description="The input placeholder."/>
  <PropTable.Entry name="size" type="{ 'sm' | 'md' | 'lg' }" defaultValue="md" description="The input size."/>
  <PropTable.Entry name="type" type="{ 'text' | 'email' | 'tel' | 'number' }" defaultValue="text" description="The input type."/>
  <PropTable.Entry name="value" type="string" description="The input content."/>
</PropTable>
5.0.0

10 months ago

4.4.13-beta.1

1 year ago

4.4.13-beta.2

1 year ago

4.4.13-beta.0

1 year ago

4.4.12

1 year ago

4.4.12-beta.0

2 years ago

4.4.11-beta.0

2 years ago

4.4.11

2 years ago

4.4.10-beta.0

2 years ago

4.4.10

2 years ago

4.4.9

2 years ago

4.4.11-canary.0

2 years ago

4.4.8-beta.0

2 years ago

4.4.8-beta.1

2 years ago

4.4.7-beta.1

2 years ago

4.4.6-beta.2

2 years ago

4.4.8-beta.2

2 years ago

4.4.7-beta.0

2 years ago

4.4.6-beta.1

2 years ago

4.4.7-beta.3

2 years ago

4.4.7-beta.2

2 years ago

4.4.7-beta.4

2 years ago

4.4.9-beta.0

2 years ago

4.4.8

2 years ago

4.4.8-canary.3

2 years ago

4.4.7

2 years ago

4.4.6

2 years ago

4.4.5-beta.0

2 years ago

4.4.6-beta.0

2 years ago

4.4.5

2 years ago

4.4.3-beta.1

2 years ago

4.4.4

2 years ago

4.4.3

2 years ago

4.4.4-beta.0

2 years ago

4.4.3-beta.0

2 years ago

4.4.1

2 years ago

4.4.0

2 years ago

4.4.2

2 years ago

4.3.1

3 years ago

4.3.0

3 years ago

4.2.5

4 years ago

4.2.4

4 years ago

4.2.3

4 years ago

4.2.2

4 years ago

4.2.1

4 years ago

4.2.0

4 years ago

5.0.0-beta.0

4 years ago

4.1.0

4 years ago

4.0.3

4 years ago

4.0.2

5 years ago

4.0.1

5 years ago

4.0.0

5 years ago

4.0.0-alpha

5 years ago

3.4.0

5 years ago

3.3.0

5 years ago

3.2.2

5 years ago

3.2.1

5 years ago

3.2.0

5 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.6

5 years ago

3.0.5

5 years ago

3.0.4

5 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.2.0

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago