command-palette
Builds Avatar Button Checkbox CommandPalette ContextMenu DescriptionList Divider EmptyState Icon List Menu Popover ProgressBar Tag Timeline


The code that drew it
A still frame holds a repeating animation at its first frame and a one-shot at its last, because a still of a moving thing is not reproducible. Run the gallery to review motion.
fn command_palette(window: &mut Window, cx: &mut App) -> AnyElement {
ensure_menus(window, cx);
let palette = cx.global::<SceneMenus>().palette.clone();
let theme = cx.theme().clone();
// A palette is summoned over whatever is on screen, so it sits centred
// near the top of the surface rather than in a corner of it.
stack(&theme)
.w_full()
.h(px(420.0))
.items_center()
.pt(px(theme.spacing.xxl))
.child(palette)
.into_any_element()
}