EnterUI
DocsComponentsThemesExamplesDonation
Get Started
      • Sidebar
      • SideNav
      • NavigationRail
      • TopBar
      • SearchCommand

Default usage

  1. EnterUI
  2. /Docs
  3. /Layout and Utilities
  4. /App Layout
  5. /Navigation Surfaces
  6. /SearchCommand
Updated 3 October 2026

SearchCommand

Trigger button styled as a search field that opens a CommandMenu.

SearchCommand is the trigger pattern for global command/search surfaces. It looks like a search field but acts as a <button> and opens a CommandMenu on click. Pair with the ⌘K shortcut.

#Default usage

Global search trigger

Render inside TopBar.search.

Code
<SearchCommand />

#Import

Code
import { SearchCommand } from "@froggdesign/enter-ui-react";

#Behavior ownership

SearchCommand is a button, not a search engine or command dialog. The shortcut text is a visual hint only: wire onClick, the keyboard listener, dialog state, and search results in your application. Remove the shortcut hint if the shortcut is not implemented. Defaults use a 14px regular label and a semibold monospace shortcut. Provide an accessible name when the visible label is hidden.

#Accessibility

SearchCommand is a real <button>, so it integrates with focus order, keyboard, and screen readers. The shortcut shows up as Kbd for sighted users; bind the keyboard handler at the route level to actually open the command palette.

#API

  • placeholder: text shown inside the trigger (also default aria-label).
  • shortcut: keyboard hint rendered as a Kbd. Pass empty string to hide.
  • hint: optional muted text rendered before the shortcut.

#Styling

Every exported component accepts className. EnterUI styles use .eui-* classes and --eui-* variables mapped from FroggDesign theme tokens.

PreviousTopBar
NextContainer
On this page
  • Default usage
  • Import
  • Behavior ownership
  • Accessibility
  • API
  • Styling