@carbon/react
Version:
React components for the Carbon Design System
24 lines (23 loc) • 766 B
TypeScript
/**
* Copyright IBM Corp. 2016, 2025
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import { KeyboardEvent } from 'react';
export type Key = Pick<KeyboardEvent, 'which' | 'keyCode' | 'code'> & {
key?: string | string[];
};
export declare const Tab: Key;
export declare const Enter: Key;
export declare const Escape: Key;
export declare const Space: Key;
export declare const PageUp: Key;
export declare const PageDown: Key;
export declare const End: Key;
export declare const Home: Key;
export declare const ArrowLeft: Key;
export declare const ArrowUp: Key;
export declare const ArrowRight: Key;
export declare const ArrowDown: Key;
export declare const Delete: Key;