Search
Import
import { Search } from '@resultadosdigitais/tangram-components'
Properties
defaultValue
disabled
loading
onChange
Type | func |
---|---|
Param | event SyntheticEvent - The event triggered by typing. |
Param | value String - The value typed on the input. |
Description
A callback called when a value is typed.
onClear
Type | func |
---|---|
Param | event Event - The event triggered by clicking on the clear button. |
Description
A callback called when the clear button is clicked.
onSubmit
Type | func |
---|---|
Param | event Event - The event triggered by clicking on the submit button. |
Param | value String - The value typed on the input. |
Description
A callback called when the submit button is clicked or ENTER
key is pressed.
placeholder
value
Type | any |
---|
Description
Sets Search's value. Use it for controlled component or defaultValue
for uncontrolled.