text-input

v0.1.2arrow_drop_down
v0.1.2
STATUS
Failing
DOWNLOADS
332
VISIBILITY
Public
PUBLISHED
3 years ago
SIZE
6 KB
1 contributor
Install text-input as a package?
Copied
npm i @bit/mmnoo.testing.text-input
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
modifieddraft
chevron_left
chevron_right

<TextInput />

WIP

Usage

  • Use the text input when you need a short, single line input from the user.
  • Use the password input when you need to mask an input.

Properties

NameType/ExampleDescription
typetext | passwordIndicates the type of input. Defaults to text
classNamestringClass name of the div which encloses this element. Defaults to form-input and adds error-form-input when there’s an error.
namestringThe name attribute of the element
labelstringThe label for the input.
helperTextstringA short sentence describing what is required/expected
isErrorboolIndicates if there’s an error. Will add the class error-form-input and make errorMessage required.
errorMessagestringIf this exists, it shows the error message and adds the error class.

Children

TypeDefaultDescription
stringundefinedThe prepopulated value for the input.

Aditional Notes

https://bit.dev/sparkgeo/spk-ds/TextInput

Properties
NameTypeDefault value
name
stringundefined
id
(required)
string
className
stringundefined
onChange
function() => {}
label
(required)
string
errorMessage
stringundefined
children
stringundefined
type
string'text'
helperText
stringundefined
Test Summary

replaceSpacesWithHyphens

Skipped
Help and resources