- Copy Demo
⌘⇧⌥⌃Ctrl+B
Installation
You can run either of the following commands:
Update the imports to match your project setup.
Usage
You can use the Kbd component in combination with the Button and InputGroup components.
use crate::components::ui::kbd::{Kbd, KbdGroup};<Kbd>"⌘"</Kbd>Examples
Kbd Button
Display keyboard shortcuts within button components for better command discoverability. This example demonstrates how to combine Kbd and Button components in Leptos to create intuitive interfaces that teach users keyboard navigation in Rust applications.
- Copy Demo
With Input Group
Integrate keyboard shortcut indicators with input fields for enhanced search functionality. This example shows how to use Kbd with InputGroup in Leptos to display search hotkeys and improve user productivity in Rust UI components.
- Copy Demo