Skip to content

KeyButton beta ​

Function of @v12-engine/client/hud

ts
export declare function KeyButton(props: {
    label: JSX.Element;
    hotkey?: string;
    pressed?: boolean;
    tip?: string;
    onPress?: (event: MouseEvent) => void;
    class?: string;
    'aria-haspopup'?: 'dialog' | 'menu';
}): JSX.Element;

A button with its key after its words, as the top bar's are: MENU F10. The key is the player's own for its action, so it is given, not known; none is shown when it has none