1 contributor
Like
Install input as a package?
Copied
npm i @bit/dennisdigital.components.atoms.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
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
modifieddraft
chevron_left
chevron_right
Input ()
Input component
Properties
Name | Type | Default value |
---|---|---|
type | string | '' |
name | string | '' |
value | string | '' |
placeholder | string | '' |
id | string | '' |
checked | bool | false |
onClick | function | () => {} |
onChange | function | () => {} |
extraClassNames | {} | {} |
context | {} | {} |
Test Summary
Input with no props | Pass |
check type text props | Pass |
check type number props | Pass |
check type search props | Pass |
check type email props | Pass |
check type checkbox props | Pass |
check name props | Pass |
check placeholder props | Pass |
checks the ID props | Pass |
should call onChange prop | Pass |
should call onClick prop | Pass |