eQuantic.UIeQuantic.UI
Docs
Playground
GitHub
DocsActions & inputs
SearchField
View source
1 min read
A search-shaped entry with a leading magnifier and a submit channel separate from the per-keystroke one.
1
using eQuantic.UI.Components;
STATES
idle
with query
Usage
1
2
3
4
5
new SearchField(_q, q => SetState(() => _q = q))
{
Placeholder = "Search the catalog",
OnSubmit = RunSearch,
}
API
Prop
Type
Default
Description
Query
string
Current text.
OnChanged
Action<string>?
null
Per keystroke — debounce in your handler, not in the component.
Placeholder
string
"Search"
Hint text.
OnSubmit
Action?
null
Enter, or the keyboard's search key.
States
State
Rendering
Idle
Subtle track, muted magnifier
Focused
Focus ring
Filled
Clear affordance available
Accessibility
Role searchbox; announce result counts through a polite live region.
When to use
Filtering a visible collection, or opening a search surface.
Avoid
Search as the only way to reach common destinations.
NOTEEvery dimension resolves through Sizing.*(SizeVariant) and the token scales — never a literal. Source: src/eQuantic.UI.Components/SearchField.cs.