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.