Code

Props

Props
Data Type
Required

defaultValue

string

❌

className

string

❌

id

string

βœ…

name

string

βœ…

placeholder

string

❌

disabled

boolean

❌

onBlur

function event

❌

onChange

function event

❌

onFocus

function event

❌

cleanData

function event

❌

Event Response

Property
Data Type

id

string

name

string

value

string

onBlur, onChange, onFocus

For this example it is going to be use the onChange event, but the same logic can be applied to the other events.

Components Dependency

For this component elaboration there were used the following internal components:

Live Demo

For detailed code usage documentation, see the Storybooks for each framework below.

React

Last updated