property SearchBarProps.onCancel

Called when Escape is pressed in the input.

Type

() => void

Usage

import { type SearchBarProps } from "src/components/layout/SearchBar.tsx";