Skip to content

Search

A search bar that opens a full-screen view on phones and a docked view on larger windows, and an app bar with search.

import { SearchBar, SearchAppBar } from '@windmorph/react';

Playground

Code

// Use your own icon components.import { MicIcon, SearchIcon } from './icons';import { SearchBar, IconButton } from '@windmorph/react'; <SearchBar  placeholder="Search mail"  leadingIcon={<SearchIcon />}  trailingIcon={<IconButton variant="standard" icon={<MicIcon />} aria-label="Voice search" />}  resultsAnnouncement="Suggestions updated"  aria-label="Search mail">  {/* Suggestions or results, usually a List */}</SearchBar>

Examples

Docked search

Full-screen search

App bar with search