Search
Import
import { Search } from '@resultadosdigitais/tangram-components'
Properties
defaultValue
disabled
loading
width
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.
Feedback
Para reportar algum problema, solicitar novos ícones, solicitar novos casos de uso de componentes, tirar dúvidas, enviar sugestões ou reportar bugs, entre em contato pelo nosso canal no Slack #tangram-design-system.