Kbd
Render keyboard shortcut text with Astryx styling.
Astryx Props
JSON-safe Kbd props forwarded to Astryx.
Supported Astryx props include:
keys(string; required): Keyboard shortcut string. Use "+" to separate keys. Special keys: mod (Cmd on Mac), ctrl, alt, shift, enter, backspace, escape, tab, up, down, left, right.xstyle(StyleXStyles): StyleX styles for layout customization (margins, positioning, sizing). Must be a stylex.create() value, not an inline style object like style={{}}.className(string): CSS class name for the root element. Prefer xstyle for styling; className is provided for integration with non-StyleX systems.style(CSSProperties): Inline styles for the root element. Prefer xstyle for styling; inline styles bypass StyleX optimization.
Props typed as React nodes, render functions, event handlers, refs, or StyleX styles are documented for Astryx parity but cannot be serialized directly from Python unless the wrapper adapts them.
See Astryx component docs: https://astryx.atmeta.com/components/Kbd.
Functions
constructor__init__(keys, **props) -> NoneparamkeysstrKeyboard shortcut text.
parampropsAny= {}Returns
None