-
Notifications
You must be signed in to change notification settings - Fork 9
Component ShortcutHint
MeowLynxSea edited this page Jun 18, 2026
·
4 revisions
A labelled keybinding — e.g. ⌘S. Useful inside menu items, tooltips, or buttons that document their accelerator.
use yororen_ui::headless::shortcut_hint::shortcut_hint;
shortcut_hint("save-hint", "Save", ["Cmd", "S"], cx).render(cx)No builder methods. Factory takes (id, label, keys, _cx) where keys is any iterator of key-cap strings. Each item becomes a separate key cap.
.render(cx) returns Stateful<Div>.
See also: KeybindingInput, Button, Tooltip.
Yororen UI v0.3.0 · repository · Apache-2.0 · This wiki documents Yororen UI v0.3.0.
This wiki documents Yororen UI v0.3.0 — the headless-core, swappable-renderer build.