@primer/react
Version:
An implementation of GitHub's Primer Design System using React
13 lines • 935 B
TypeScript
import type { KeybindingHintProps } from './props';
/** Indicates the presence of an available keybinding. */
export declare const KeybindingHint: import("react").MemoExoticComponent<({ className, ...props }: KeybindingHintProps) => import("react").JSX.Element>;
/**
* AVOID: `KeybindingHint` is nearly always sufficient for providing both visible and accessible keyboard hints.
* However, there may be cases where we need a plain string version, such as when building `aria-label` or
* `aria-description`. In that case, this plain string builder can be used instead.
*
* NOTE that this string should _only_ be used when building `aria-label` or `aria-description` props (never rendered
* visibly) and should nearly always also be paired with a visible hint for sighted users.
*/
export declare const getAccessibleKeybindingHintString: (sequence: string, isMacOS: boolean) => string;
//# sourceMappingURL=KeybindingHint.d.ts.map