SearchTrigger
Properties
Use SearchTrigger
A button for opening search, with a compact icon-only option and an optional keyboard hint.
Design notes
- Use SearchTrigger to open search in another surface. Use SearchInput when people can enter a query in place.
- Use iconOnly in a compact toolbar and fullWidth in a wider sidebar. Keep the label meaningful in either layout.
- Supply shortcut and aria-keyshortcuts only when the host has implemented that binding. The keycap is hidden for coarse pointers and icon-only triggers.
API reference
View TypeScript source