Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

text-field

v0.0.2arrow_drop_down
v0.0.2
STATUS
Passing
DOWNLOADS
1
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
4 months ago
SIZE
131 KB
1 contributor
Use text-field in your project ?
Copied
npm i @bit/exigentcoder.react-final-form-material-ui.text-field
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
React
React
Vue
Angular
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';
revert changes
reload
toggle layout
maximize
modifieddraft
chevron_left
chevron_right
Test Summary

Should render successfully with just a name provided, the display label should equal a capitalised version of the name

Pass

should return a function that calls the passed in function

Pass

should pass the provided argument to the function

Pass

should only execute the arguments passed in as functions

Pass

should throw an error when empty name is passed

Pass

should throw an error when whitespace name is passed

Pass

should use the name if id is not provided

Pass

should use the name without removing dots if provided.

Pass

should use the name if id is null

Pass

should use the name if id is undefined

Pass

should use the name if id is just whitespace

Pass

should use the id as is if one is set

Pass

should trim the id if starts with or ends with whitespace

Pass

should throw an error when empty name is passed

Pass

should throw an error when whitespace name is passed

Pass

should capitalise the first letter if only one word is passed in

Pass

should capitalise the first letter of each word and add a space if camel case string is passed in

Pass

should capitalise the first letter of each word and add a space if pascal case string is passed in

Pass

should capitalise the first letter of each word and add a space if snake case string is passed in

Pass

should capitalise the first letter of each word and add a space if kebab case string is passed in

Pass

should add an 's if a word that is not the last word ends in an s

Pass

should not add an 's if a word that is the last word ends in an s

Pass

should not add an 's for the word reasons

Pass

should use the name if label is not provided

Pass

should use the name if label is null

Pass

should use the name if label is undefined

Pass

should use the name if label is just whitespace

Pass

should use the label as is if one is set

Pass

should trim the label if starts with or ends with whitespace

Pass

should use the label if it is a react node

Pass

should add the prefix at the beginning of the string if one is provided

Pass

should add the prefix at the beginning of the string if one is provided

Pass

should not include the details before the last dot

Pass

should not include the details before the last dot when there are multiple dots

Pass

should throw an error when empty string is passed

Pass

should throw an error when whitespace name is passed

Pass

should use the name it is provided

Pass

should not strip the content before the dot if the argument is set to false

Pass

should not show an error if neither was provided

Pass

should not show an error if the form is pristine

Pass

should show the provided error form has been touched

Pass

should show the provided submit error if the user has not yet changed the value

Pass

should not show the provided submit error if the user has changed the value

Pass

should display the error if the user has changed the value after a failed submit to an invalid value

Pass