field.filter
Narrows a list that is already shown, usually in a toolbar: "Search this feed"
Field intents
Example
<Field intent="field.filter" id="filter" name="filter" />Choosing between neighbours
Find the row that describes your element, and use the intent on the right.
If it is
Use
Narrows a list that is already shown, usually in a toolbar: "Search this feed"
field.filterthis pageNarrowing a list that is already shown
rather thanfield.searchfield.filterthis page
Connections
Declared in the registry, both directions. Where an intent is used in your own code is something check and the gallery see; this site has no app code.
- Built from
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.filter 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-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive
field.filterNarrows a list that is already shown, usually in a toolbar: "Search this feed"
py-1.5 text-sm
w-full min-w-0 rounded-md border border-input bg-background pl-3 pr-3 text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive py-1.5 text-sm
{ type: 'search', inputMode: 'search' }'field.filter': {
kind: 'semantic',
description: 'Narrows a list that is already shown, usually in a toolbar: "Search this feed"',
refs: ['input.default'],
binding: {
classes: 'py-1.5 text-sm',
behavior: { type: 'search', inputMode: 'search' },
},
},