Pular para o conteúdo principal

Search

Import

import { Search } from '@resultadosdigitais/tangram-components'

Properties

defaultValue

Typeany

Description

Sets the value. Used for Uncontrolled component.

disabled

Typebool
Defaultfalse

Description

Sets if Search is disabled.

loading

Typebool
Defaultfalse

Description

Sets loading appearance.

onChange

Typefunc
Paramevent SyntheticEvent - The event triggered by typing.
Paramvalue String - The value typed on the input.

Description

A callback called when a value is typed.

onClear

Typefunc
Paramevent Event - The event triggered by clicking on the clear button.

Description

A callback called when the clear button is clicked.

onSubmit

Typefunc
Paramevent Event - The event triggered by clicking on the submit button.
Paramvalue String - The value typed on the input.

Description

A callback called when the submit button is clicked or ENTER key is pressed.

placeholder

Typestring

Description

Sets the text displayed when there is no defaultValue nor value.

value

Typeany

Description

Sets Search's value. Use it for controlled component or defaultValue for uncontrolled.

Feedback