3.1.1 • Published 1 month ago

@fidelisppm/limited-input v3.1.1

Weekly downloads
13
License
SEE LICENSE IN GI...
Repository
github
Last release
1 month ago

LimitedInput

A collection of <input> style components which limit the user's capability of entering text in various ways

Components

LimitedInput

Display an input preventing the user from entering more than a specified amount of characters. Also display a character count with the input.

Props

maxChars (number)
The maximum number of characters allowed. Defaults to 64.

alwaysShowLimit (bool)
If true, always display the character limit. If false, display the limit only when it is reached or exceeded. Defaults to false.

alertPosition (string)
bottom or right. Defaults to bottom.

import LimitedInput from '@fidelisppm/limited-input';

// In render function
<LimitedInput
	maxChars={32}
	alwaysShowLimit={true}
	alertPosition="right" 
/>

NumberInput

Display an input which allows only digits to be entered

import { NumberInput } from '@fidelisppm/limited-input';

// In render function
<NumberInput id="foo" className="bar"/>

PhoneInput

Display an input allowing only digits to be entered, and show an adaptive hint in the text field in the form of a phone number format

import { PhoneInput } from '@fidelisppm/limited-input';

// In render function
<PhoneInput id="foo" className="bar"/>

ZipInput

Display an input allowing only digits to be entered, and show an adaptive hint in the text field in the form of a five-digit zip code

import { ZipInput } from '@fidelisppm/limited-input';

// In render function
<ZipInput id="foo" className="bar"/>
3.1.1

1 month ago

3.1.0

1 year ago

3.0.5

3 years ago

3.0.4

3 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.0.0

4 years ago

1.0.6

4 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago