Overlays
ContentSearchButton
A trigger button styled to open a `CommandPalette`, showing a placeholder and shortcut hint.
<UiContentSearchButton />Options
One block per prop — what it does, and what it looks like set.
Placeholder
Default — placeholder, paired with a CommandPalette
Purely a styled trigger — it has no open state of its own. You always wire its @click to open a separate CommandPalette yourself, and its placeholder is just displayed text — it doesn't automatically pass through to whatever it opens.
Shortcut
shortcut is the key hint shown on the right of the button. It's decoration only — the button doesn't bind anything, so register the real shortcut on whatever it opens.
Icon
icon is the glyph in the trigger, a magnifying glass by default. Change it only to match an icon set you already use for search elsewhere.
Collapsed
collapsed renders an icon-only square button, dropping the placeholder text and the shortcut hint — for a narrow header or a mobile bar.
Variant
outline is the ringed field that reads as a search input, and the right default wherever the trigger stands on its own. subtle is that same ring on a raised surface, matching a Card's own subtle, so the control belongs to the card it sits on. soft drops the ring for a plain fill. ghost shows nothing until hover, for a row of icon buttons where a ring on just this one would look out of place. It applies to collapsed buttons too.
API Reference
Generated from the component's source — props, slots and emits as the component actually declares them.
Props
string[]['meta', 'k']booleanfalse"outline" | "subtle" | "soft" | "ghost"'outline'Types
type Variant = "outline" | "subtle" | "soft" | "ghost";