← Components / Input

Search bar

A prominent, pill-shaped search entry for the top of a screen.

SwiftUIReact Native · Coming soonFlutter · Coming soon
⌕ Search mail ⚙

Usage

SwiftUI
M3ESearchBar(text: $query, placeholder: "Search mail", trailing: [.init("tune", label: "Filters") {}])

API

PropertySwiftUIDescription
trailing[M3EToolbarItem]Trailing icon actions.

Guidelines

  • Keep it at the top of the screen it searches.