Vitepress Theme Akari Docsv1.0.0GitHubSettingsMore

Floating search demo ​

This page is the live example for <SearchDock>. The tag sits in the dashed landing box below; the field leaves the app bar and lands on it.

landing box

Open this page directly and the field snaps into the box. Navigate here from another page and it flies in. Change a control to see the field re-shape and re-align in place. With fill on, the tag takes the whole outer box, so its size can follow any layout you give it. Hide the tag to watch it fly home and fade out; show it again to fly back in.

<SearchDock variant="hero" align="center" placeholder="Search docs" />

Try it in four ways:

  • Reload this page: the field is already in the box, with no fly-in transition.
  • Leave this page (for example via Overview) and come back: it flies from the app bar to the box.
  • Change Variant or Align: the field re-shapes and re-aligns in place.
  • Turn on Fill box: the tag takes the whole outer box (width: 100%; height: 100%), so the field follows whatever size the surrounding layout gives it. Turn it off to return to the variant's natural size.
  • Turn on Immersive: click the field and type; results appear in a compact list under it, without the search dialog.

The field stays interactive while docked: with immersive off, click it or press ⌘K (Ctrl K) to open the search panel from where it stands. With immersive on, click and type directly; the shortcut still opens the full dialog.

GitHub Settings

Search the docs

Type a page title, a component name or words from the text.

Press ⌘/Ctrl + K to open it anytime

Choose a language

EnglishEnglish (United States)العربيةArabic (Saudi Arabia)FrançaisFrench (France)日本語Japanese (Japan)한국어Korean (South Korea)简体中文Chinese (China)

Settings

Color
VariantTonal SpotVibrantFidelityExpressiveMonochromeNeutralRainbowFruit Salad
ContrastDefaultMediumHigh
MotionStandardExpressive
Text directionFollow languageLeft to rightRight to left
Text size100%150%200%