跳到內容
調色盤星雲光譜
選擇版面配色

即時套用,保留目前的亮暗模式。

SearchBox (am-search-box)

SearchBox renders a labeled search input and submit button inside a native GET form. The consumer supplies the route that receives the query and owns indexing, result matching, ranking, recent searches, and analytics.

  • action, visible label, and search-landmark ariaLabel are required
  • name defaults to q; submitLabel defaults to Search
  • placeholder and a server-rendered query value are optional
  • The form always uses method="get" and type="search"; no client-side query state or result UI is included
  • The consumer owns the destination route and its behavior
<SearchBox
action="/search/"
label="Search this library"
ariaLabel="Games Atlas search"
name="q"
placeholder="Search games and guides"
/>