Skip to content
Material Design 3
Main Navigation
v3
v2
v1

English

简体中文
繁體中文
Español
Français
Русский
Português – Brasil
Deutsch
日本語
한국어
Italiano
Polski
Türkçe
čeština
magyar

English

简体中文
繁體中文
Español
Français
Русский
Português – Brasil
Deutsch
日本語
한국어
Italiano
Polski
Türkçe
čeština
magyar

Appearance

Sidebar Navigation

Foundations

Accessibility

Overview: Principles

Overview: Assistive technology

Designing: Overview

Designing: Color contrast

Designing: Structure

Designing: Flow

Designing: Elements

Writing and text: Best practices

Writing and text: Text truncation

Writing and text: Text resizing

Building for all: User needs

Building for all: Co-design

Content design

Overview

Alt text

Global writing: Overview

Global writing: Word choice

Notifications

Style guide: UX writing best practices

Style guide: Word choice

Style guide: Grammar and punctuation

Customizing Material

Devices

Watches: Overview

Watches: Foundations

Watches: Styles

Watches: Layout

XR

Design: Overview

Design: Interaction

Design: Layout

Design: Accessibility

Components: Overview

Components: App bars

Components: Dialogs

Components: Nav bar

Components: Nav rail

Components: Toolbars

Design tokens: Overview

Design tokens: How to use tokens

Interaction

Gestures

Inputs

Selection

States: Overview

States: State layers

States: Applying states

Layout

Overview: Overview

Overview: Parts of layout

Overview: Adaptive design

Scaffold: Overview

Scaffold: Bars

Scaffold: Rails

Scaffold: Panes

Grids & spacing: Overview

Grids & spacing: Grids

Grids & spacing: Spacing

Grids & spacing: Density

Breakpoints: Overview

Breakpoints: Compact

Breakpoints: Medium

Breakpoints: Expanded

Breakpoints: Large & extra-large

Bidirectionality & RTL

Canonical examples: Overview

Canonical examples: Feed

Canonical examples: List-detail

Canonical examples: Supporting pane

Usability: Overview

Usability: Applying M3 Expressive

Material A-Z

Styles

Color

Color system: Overview

Color system: How the system works

Color roles

Color schemes

Choosing a scheme

Static: Baseline

Static: Custom brand

Dynamic: Choosing a source

Dynamic: User-generated source

Dynamic: Content-based source

Advanced: Overview

Advanced: Apply colors

Advanced: Define new colors

Advanced: Adjust existing colors

Color resources

Elevation: Overview

Elevation: Applying elevation

Elevation: Tokens

Icons: Overview

Icons: Designing icons

Icons: Applying icons

Motion

Motion physics system: How it works

Motion physics system: Specs

Easing and duration: Applying easing and duration

Easing and duration: Tokens & specs

Transitions: Transition patterns

Transitions: Applying transitions

Shape: Overview & principles

Shape: Corner radius scale

Shape: Shape morph

Spacing: Overview

Spacing: Applying spacing

Spacing: Tokens

Typography: Overview

Typography: Fonts

Typography: Type scale & tokens

Typography: Applying type

Typography: Editorial treatments

Components

App bars: Overview

App bars: Specs

App bars: Guidelines

App bars: Accessibility

Badges: Overview

Badges: Specs

Badges: Guidelines

Badges: Accessibility

Buttons

All buttons

Button groups: Overview

Button groups: Specs

Button groups: Guidelines

Button groups: Accessibility

Buttons: Overview

Buttons: Specs

Buttons: Guidelines

Buttons: Accessibility

Extended FABs: Overview

Extended FABs: Specs

Extended FABs: Guidelines

Extended FABs: Accessibility

FAB menu: Overview

FAB menu: Specs

FAB menu: Guidelines

FAB menu: Accessibility

FABs: Overview

FABs: Specs

FABs: Guidelines

FABs: Accessibility

Icon buttons: Overview

Icon buttons: Specs

Icon buttons: Guidelines

Icon buttons: Accessibility

Segmented buttons: Overview

Segmented buttons: Specs

Segmented buttons: Guidelines

Segmented buttons: Accessibility

Split button: Overview

Split button: Specs

Split button: Guidelines

Split button: Accessibility

Cards: Overview

Cards: Specs

Cards: Guidelines

Cards: Accessibility

Carousel: Overview

Carousel: Specs

Carousel: Guidelines

Carousel: Accessibility

Checkbox: Overview

Checkbox: Specs

Checkbox: Guidelines

Checkbox: Accessibility

Chips: Overview

Chips: Specs

Chips: Guidelines

Chips: Accessibility

Date & time pickers

Date pickers: Overview

Date pickers: Specs

Date pickers: Guidelines

Date pickers: Accessibility

Time pickers: Overview

Time pickers: Specs

Time pickers: Guidelines

Time pickers: Accessibility

Dialogs: Overview

Dialogs: Specs

Dialogs: Guidelines

Dialogs: Accessibility

Divider: Overview

Divider: Specs

Divider: Guidelines

Divider: Accessibility

Lists: Overview

Lists: Specs

Lists: Guidelines

Lists: Accessibility

Loading & progress

Loading indicator: Overview

Loading indicator: Specs

Loading indicator: Guidelines

Loading indicator: Accessibility

Progress indicators: Overview

Progress indicators: Specs

Progress indicators: Guidelines

Progress indicators: Accessibility

Menus: Overview

Menus: Specs

Menus: Guidelines

Menus: Accessibility

Navigation

Navigation bar: Overview

Navigation bar: Specs

Navigation bar: Guidelines

Navigation bar: Accessibility

Navigation drawer: Overview

Navigation drawer: Specs

Navigation drawer: Guidelines

Navigation drawer: Accessibility

Navigation rail: Overview

Navigation rail: Specs

Navigation rail: Guidelines

Navigation rail: Accessibility

Radio button: Overview

Radio button: Specs

Radio button: Guidelines

Radio button: Accessibility

Search: Overview

Search: Specs

Search: Guidelines

Search: Accessibility

Sheets

Bottom sheets: Overview

Bottom sheets: Specs

Bottom sheets: Guidelines

Bottom sheets: Accessibility

Side sheets: Overview

Side sheets: Specs

Side sheets: Guidelines

Side sheets: Accessibility

Sliders: Overview

Sliders: Specs

Sliders: Guidelines

Sliders: Accessibility

Snackbar: Overview

Snackbar: Specs

Snackbar: Guidelines

Snackbar: Accessibility

Switch: Overview

Switch: Specs

Switch: Guidelines

Switch: Accessibility

Tabs: Overview

Tabs: Specs

Tabs: Guidelines

Tabs: Accessibility

Text fields: Overview

Text fields: Specs

Text fields: Guidelines

Text fields: Accessibility

Toolbars: Overview

Toolbars: Specs

Toolbars: Guidelines

Toolbars: Accessibility

Tooltips: Overview

Tooltips: Specs

Tooltips: Guidelines

Tooltips: Accessibility

On this page

Search: Specs ​

Search lets people enter a keyword or phrase to get relevant information

Variants ​

When a person executes a search, results appear in a list below the search bar

VariantM3M3 Expressive
SearchAvailableAvailable

Configurations ​

Style ​

Search comes in two styles:

  • Contained: Has an expressiveM3 Expressive is a major update to Material 3, adding visually stunning features, components, and variants, plus updates to the shape, motion, and typography systems.More on M3 expressive look and feel. It uses a filled container to separate a search bar from a listLists are continuous, vertical indexes of text and images.More on lists of suggestions or results
  • Divided (baselineBaseline variants and styles are the original M3 component designs. They may not have the latest features introduced in M3 Expressive, like updated motion, shapes, type, and styles.): Doesn't have the latest visual style, motion, or flexibility
An email inbox search bar in a contained style.
The contained style has a persistent, filled container, expressive motion, and rounded shape
An email inbox search bar in a divided style.
The divided (baseline) style uses a divider to separate the search bar from suggestions and results

Layout ​

Search suggestions and results appear in customizable lists, with two layout options: full-screen and docked. More on search layouts

Full-screen search results with a search bar in the contained style.
Full-screen layout in the contained style
Docked search results with a search bar in the contained style.
Docked layout in the contained style
Full-screen search results with a search bar in the divided style.
Full-screen layout in the divided style
Docked search results with a search bar in the divided style.
Docked layout in the divided style
CategoryConfigurationM3M3 Expressive
StyleContained--Available
DividedAvailableNot recommended. Use contained.
LayoutDocked, full-screenAvailableAvailable

Tokens & specs ​

Use the table's menu to select a token set. The search bar set only contains tokens for the unfocused search bar. The search view set contains all other tokens when interacting with search, including all styles and layouts. Learn more about design tokens

Search - View ​

Theme
Platform
Contrast
TokenValue
Search view container surface tint layer color#6750A4

Search - Bar ​

Theme
Platform
Motion scheme
Contrast

Anatomy ​

Search includes a search bar and a container for suggestions and results. The container is empty by default. Use the listLists are continuous, vertical indexes of text and images.More on lists component to add content. In the divided (baseline) style, a divider separates the search bar and results.

6 elements of search.
  1. Search bar container
  2. Leading icon
  3. Supporting text
  4. Trailing icon and avatar (optional)
  5. Input text
  6. Container for search suggestions or results

Examples

  1. With avatar
  2. With one trailing icon buttonIcon buttons help people take minor actions with one tap.More on icon buttons
  3. With two trailing icon buttons
  4. With trailing icon button and avatar
4 search bars with different trailing elements.

Color ​

Color values are implemented through design tokensDesign tokens are the building blocks of all UI elements. The same tokens are used in designs, tools, and code.More on tokens. For designers, this means working with color values that correspond with tokens. In implementation, a color value will be a token that references a value.

Full-screen layout ​


6 full-screen search color roles in light and dark themes.

Full-screen search color roles used in light and dark themes:

  1. Surface container low
  2. On surface variant
  3. On surface variant
  4. Surface container high
  5. On surface variant
  6. On surface

Docked layout ​


6 docked search color roles in light and dark themes.

Docked search color roles used in light and dark themes:

  1. Surface container high
  2. On surface variant
  3. On surface variant
  4. Surface container high
  5. On surface variant
  6. On surface

States ​

States are visual representations used to communicate the status of a component or an interactive element. In focused search, individual elements maintain their own interaction states. Learn more about interaction states

Search bar ​


4 search bar states in light and dark mode.
  1. Enabled
  2. Hovered
  3. Focused
  4. Pressed (ripple)

Search suggestions & results ​

Search includes a container for suggestions and results. The container is empty by default. Use the list component to add content.

4 search result states in light and dark mode.
  1. Enabled
  2. Hovered
  3. Focused
  4. Pressed (ripple)

Measurements ​

Search bar ​

Search bar with leading and trailing icon size and padding measurements.
Unfocused search bar with leading and trailing icon measurements
Search bar with trailing avatar size and padding measurements.
Unfocused search bar with avatar measurements

In M3 Expressive, the search bar expands when focused. The margins change from 24dp to 12dp.

Unfocused search bar margins of 24dp.
Unfocused search bar margin measurements
Focused search bar margins of 12dp.
Focused search bar margin measurements
ElementAttributeValue
ContainerWidthMin: 360dp, max: 720dp
Height56dp
Label alignmentStart-aligned
Leading paddingUnfocused: 24dp, focused: 12dp
Trailing paddingUnfocused: 24dp, focused: 12dp
Leading icon and label padding (from tap target)4dp
Label and trailing icon padding (from tap target)4dp
AvatarSize30dp

Focused search ​

Contained style ​

Full-screen layout size and padding measurements in contained style.
Full-screen search padding and size measurements for contained style
Docked layout size and padding measurements in contained style.
Docked search padding and size measurements for contained style
ElementAttributeValue
Full-screen containerWidthFull width
HeightFull height
Docked containerWidthMin: 360dp, max: 720dp
HeightMin: 240dp, max: 2/3 of screen height
Search bar containerHeight56dp
Label alignmentStart-aligned
Leading padding16dp
Trailing padding16dp
Leading icon and label padding (from tap target)4dp
Leading icon and label padding (from tap target)4dp

Divided style ​

Full-screen layout size and padding measurements in divided style.
Full-screen search padding and size measurements for divided style
Docked layout size and padding measurements in divided style.
Docked search padding and size measurements for divided style
Pager
Previous pageSearch: Overview
Next pageSearch: Guidelines

Released under the Apache 2.0 or CC BY 4.0

Copyright © 2018-Present Google

https://m3.material.io/components/search/specs

Released under the Apache 2.0 or CC BY 4.0

Copyright © 2018-Present Google