Search
A search box: icon, clear button, an optional shortcut that focuses it, and a debounced ray-search event. A RayInput, so it has a label and takes part in forms.
Filter a list as you type
- webThe Express-style framework: routes, middleware, sessions.
- netProduction HTTP server and client, TLS, WebSocket.
- rpcTyped calls between a backend and its clients.
- dbSQL with migrations: SQLite and Postgres.
- ray-elementsThis design system: web components with raylang extras.
- webtestBrowser tests that run in the real webview.
- jobsBackground jobs and schedules.
- observeLogs, metrics and traces.
No package matches .
ray-search: once the typing pauses
- Queries appear here.
Variants, sizes and radius
API
For AI agents: this API as Markdown, or every component in llms-full.txt.
<ray-search> · RaySearch
Escape clears it (when it has text); Enter fires ray-search at once. JS: clear(), focus().
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
value | value | string | Current text. | |
placeholder | placeholder | string | Search… (text search.placeholder) | Placeholder text. |
shortcut | shortcut | string | Keyboard shortcut that focuses it ("mod+k", "/"; mod = ⌘ on macOS, Ctrl elsewhere). Shown as a hint while empty. | |
debounce | debounce | number | 200 | Milliseconds of quiet typing before ray-search fires (0: on every keystroke). |
name | name reflects | string | Form field name. | |
label | label | string | Visible label (also the accessible name). Without it, use aria-label. | |
disabled | disabled | boolean | Not editable nor submitted. | |
size | size reflects | xs | sm | md | lg | xl | sm | Height and font size. |
radius | radius | xs | sm | md | lg | xl | full | Corner radius. | |
variant | variant reflects | default | filled | unstyled | filled | Box style. |
| Event | Description |
|---|---|
input | On every edit (value already updated). |
ray-search | After `debounce` ms without typing, on Enter, and when cleared. |
| Part | Description |
|---|---|
input | The inner <input type=search>. |
icon | The search icon. |
clear | The clear button. |
shortcut | The shortcut hint. |
wrapper | The box. |
Texts
What it writes itself, in English; setStrings() translates them (Getting started: Languages).
| Key | English |
|---|---|
search.placeholder | Search… |
search.clear | Clear search |