Search Field

Type and search, exploring your data like searching for stars with a telescope, quick and responsive.

Basic

A search field is a box where you can type in keywords to search for something, like finding content on a website.

Installation

If you hit any issues, make sure you check out the installation guide here.

Composed Components

When you plug this component from the CLI, it autoloads all the composed components. No need to toss 'em in one at a time.

The Search Field's decked out with several components to make it bangin'.

Button

Buttons be the real MVPs, man! They're all about gettin' stuff done, whether it’s slamming that form submit or hoppin' to another page.

Field

Field's a core piece every other component uses. It flexes reusable styles, showing up in inputs, labels, descriptions, and more.

Manual Installation

Sometimes, using the CLI is the way to go, so make sure you install the necessary dependencies for the components you want to use.

And next, you can copy the code below and paste it into your dopest component folder.

Anatomy

Import the components and use them as shown below, adapting the structure to fit each component.

Controlled

Like other fields, the search field can be controlled by managing its value through the value prop.

You have typed:

With Label

You can add a label to the search field by using the label prop.

Validation

Add a validation message to the search field by setting the validationMessage prop.

Disabled

Disable the search field by using the isDisabled prop.