ultra-design
Version:
31 lines (30 loc) • 889 B
TypeScript
import React from 'react';
interface Props {
/**
* @description.zh-CN show command key
* @description.en-US 显示 Command 按钮
*/
command?: boolean;
/**
* @description.zh-CN show shift key
* @description.en-US 显示 Shift 按钮
*/
shift?: boolean;
/**
* @description.zh-CN show option key
* @description.en-US 显示 Option 按钮
*/
option?: boolean;
/**
* @description.zh-CN show ctrl key
* @description.en-US 显示 Control 按钮
*/
ctrl?: boolean;
className?: string;
}
declare type NativeAttrs = Omit<React.KeygenHTMLAttributes<any>, keyof Props>;
export declare type KeyboardProps = Props & NativeAttrs;
declare const defaultProps: {};
export declare type MergedKeyboardProps = typeof defaultProps & Props;
declare const Keyboard: React.FC<KeyboardProps>;
export default Keyboard;