-
Notifications
You must be signed in to change notification settings - Fork 9
Component ShortcutHint
MeowLynxSea edited this page Jan 24, 2026
·
4 revisions
A small key-hint pill (e.g. ⌘K).
Useful for showing keyboard shortcuts next to menu items or actions.
- Trailing shortcut hints in menus
- Showing “discoverable” shortcuts in tooltips or command lists
use yororen_ui::component::shortcut_hint;
let view = shortcut_hint("⌘K");-
shortcut_hint("..."): constructor -
tone(Hsla): override background color
- Typography:
text_xs - Text color:
theme.content.tertiary - Background:
theme.surface.sunken(unless overridden bytone(...))
use gpui::div;
use yororen_ui::component::{list_item, shortcut_hint};
let row = list_item().content("Open settings").trailing(div().child(shortcut_hint("⌘,")));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.