field.search
Finds or narrows things: the main search of a page, or "Search this list" in a toolbar
Read https://www.prongs.dev/docs/intents/field/search.md and tell me whether field.search fits what I am building.Field intents
Example
<Field intent="field.search" label="Search people" placeholder="Name or email" />Connections
Choosing between neighbours
If it is
Use
Finds or narrows things: the main search of a page, or "Search this list" in a toolbar
field.searchA web address
field.url
For registry authors
Starter intents. These are the intents prongs add puts in your registry, shown in this site’s theme. Yours are your own registry.ts: rename, restyle and add to them, and see them with prongs add gallery.
What this intent is built from and its entry in components/prongs/registry.ts. You only need this to change how it looks or to add an intent like it.
How field.search resolves, and its definition
Each layer adds to the one before it; a later class wins over an earlier one that sets the same thing.
input.defaultBordered input box
w-full min-w-0 rounded-md border border-input bg-background pl-3 pr-3 py-2 text-base text-foreground placeholder:text-surface-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive
field.searchFinds or narrows things: the main search of a page, or "Search this list" in a toolbar
w-full min-w-0 rounded-md border border-input bg-background pl-3 pr-3 py-2 text-base text-foreground placeholder:text-surface-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive
{ type: 'search', inputMode: 'search' }'field.search': {
kind: 'semantic',
description: 'Finds or narrows things: the main search of a page, or "Search this list" in a toolbar',
refs: ['input.default'],
binding: { behavior: { type: 'search', inputMode: 'search' } },
notFor: [{ context: 'a web address', instead: 'field.url' }],
},