Skip to main content

command_item

Function command_item 

Source
pub fn command_item<I, E>(children: I) -> El
where I: IntoIterator<Item = E>, E: Into<El>,
Expand description

A focusable palette row (shadcn’s CommandItem) — compose from command_icon, command_label, and command_shortcut, or use command_row. Key it with the action it routes to; clicks emit UiEventKind::Click to that key.