ki-search-suggestion
@kimen/elements/ki-search-suggestion- Source
- Agent reference
Supply suggestions as direct children of ki-search. The
child text provides the display title and serves as the query when the
value is omitted. Add description for context or recent for a removable
query in the recent-search group.
When to use: supply one suggested or recent query as a direct ki-search child.
When not to use: standalone display, form options or arbitrary results content. Use the results slot of ki-search for independently rendered results.
Properties & attributes
| Attribute | Property | Type | Default | Description |
|---|---|---|---|---|
description | description | string | undefined | – | Optional supporting text displayed below the title. |
recent | recent | boolean | false | Display in the removable recent-search group. |
value | value | string | undefined | – | Query to run. When omitted, the trimmed title is used. |
Slots
| Slot | Description |
|---|---|
| (default) | Plain text title displayed in the owning search view. |
CSS custom properties
The public styling contract of ki-search-suggestion: reassign these tokens at :root or on a subtree — never override internals.
| Token | Description |
|---|---|
--ki-search-suggestion-font-family | Inherited body typeface on the declarative suggestion host. |