@6dui/6d-input-box
v1.0.1
Published
6d input box component
Downloads
10
Keywords
Readme
6d Input Box
Normal input box
Properties
|Property | Type | Default | Description |
| ------------ | ------------ | ------------ | ------------ |
| type | String | FIELD_TYPES.TEXT or '0' | Defines type of field|
|onChange | function
|undefined | On change function is passed |
| value | any |undefined | value of the field |
| disabled | boolean
| false |If passed true , the field will be disabled |
Normal textbox
Sample code
const [sampleText, setSampleText] = useState('')
<TextBox
value={sampleText}
maxLength={10}
placeholder="Sample Text box"
onChange={setSampleText}
disabled={false}
name='sampleText'
/>