Dock
@sushindustries/uiA launcher, what is open, and a corner. Search opens in the middle of the screen.
Props
| Prop | Type | Default | Does |
|---|---|---|---|
tasks? | readonly DockTask[] | [] | What is open. One button each; pressing one brings it to the front. |
label? | string | "Search" | Text on the search control. |
trailing? | ReactNode | - | Right-hand side. A count, a clock, a link. |
Notes
onSearch is the flag for the search well, the same way onCloseTask is the
flag for the per-task close button: leave either unset and that control does
not render, rather than rendering disabled. label only has an effect when
onSearch is set - it is the accessible name and tooltip for a control that
does not exist otherwise.
tasks with no entries renders an empty row rather than nothing, since the
search well and trailing may still have something to show.