Kbd

Used to display textual user input from keyboard.

Ctrl+B

Group

Use the KbdGroup component to group keyboard keys together.

Use Ctrl + BCtrl + K to open the command palette

Button

Use the Kbd component inside a Button component to display a keyboard key inside a button.

Anatomy

Import all parts and piece them together.

use leptos::prelude::*;
use singlestage::kbd::*;

#[component]
pub fn KbdAnatomy() -> impl IntoView {
    view! {
        <KbdGroup>
            <Kbd />
        </KbdGroup>
    }
}

API Reference

Kbd

Contains a single styled input indication.

Implements global attributes.

KbdGroup

Contains a group of styled input indicators.

Implements global attributes.