Skip to main content

Contract Search

The contract search is a component that allows the user to ask the Yuzzu API to search for a existing contract for plate number. The component allows the user to search for a contract for a phyiscal person or a company. For a physical person, the user can search for a contract by entering a plate number and a date of birth. For a company, the user can search for a contract by entering a plate number and a company name.

Structure

{
"contract_number": {
"component": "yuzzu_contract_search",
"label": "Contract Number"
}
}

Options

enableReinitialize

This option displays a button to reinitialize the search, clear the result and start a new search.

By default it's set to false, so the button is not displayed.

"existing_contract": {
"component": "yuzzu_contract_search",
"label": "Existing Contract",
"options": {
"enableReinitialize": true
}
}

Storybook Examples

Simple Yuzzu Contract Search#

Simple Yuzzu Contract Search With Initial Value#

Enable Reinitialize Option#