Tesserae

Description

SearchBox provides a dedicated input field for searching through content. It is designed to capture search queries either when the user presses "Enter" or automatically as they type. Being a part of the Components group, it offers customization options such as underlining, custom icons, disabled states, and more. Use the SearchBox when you need an interactive search input that supports user-triggered search events.

Usage

To instantiate a SearchBox, use the static helper method from Tesserae.UI. You can chain various methods to configure its appearance and behavior, including setting placeholder text, enabling a "search as you type" mode, customizing the icon, and handling the search event.

Below is a simple example demonstrating how to create a SearchBox:

API reference

Samples

Basic SearchBox with Underline and Search-as-You-Type

The following sample demonstrates the creation of a SearchBox that is underlined, triggers search events automatically as the user types, and displays an alert with the search query.

See also

  • TextBox – The basic text input component that forms the foundation of the SearchBox.
  • Button – Often used in conjunction with search inputs for initiating search actions manually.

Referenced by

© 2026 Tesserae. All rights reserved.