Skip to content
Kimenpre-v1documentation home
Color scheme

ki-search-suggestion

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

AttributePropertyTypeDefaultDescription
descriptiondescriptionstring | undefined–Optional supporting text displayed below the title.
recentrecentbooleanfalseDisplay in the removable recent-search group.
valuevaluestring | undefined–Query to run. When omitted, the trimmed title is used.

Slots

SlotDescription
(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.

TokenDescription
--ki-search-suggestion-font-familyInherited body typeface on the declarative suggestion host.