1.0.1 • Published 1 year ago

@6dui/6d-input-box v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

6d Input Box

Normal input box

Properties

PropertyTypeDefaultDescription
typeStringFIELD_TYPES.TEXT or '0'Defines type of field
onChangefunctionundefinedOn change function is passed
valueanyundefinedvalue of the field
disabledbooleanfalseIf 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'
        />
Output