diff --git a/src/lib/@types/index.d.ts b/src/lib/@types/index.d.ts index 7ce3c41e..69cacb0c 100644 --- a/src/lib/@types/index.d.ts +++ b/src/lib/@types/index.d.ts @@ -10,6 +10,12 @@ declare module 'simple-keyboard' { buttons: string; } + interface KeyboardButtonAttributes { + attribute: string; + value: string; + buttons: string; + } + interface KeyboardOptions { /** * Modify the keyboard layout. @@ -41,6 +47,11 @@ declare module 'simple-keyboard' { */ buttonTheme?: KeyboardButtonTheme[]; + /** + * A prop to add your own attributes to one or several buttons. + */ + buttonAttributes?: KeyboardButtonAttributes[]; + /** * Runs a `console.log` every time a key is pressed. Displays the buttons pressed and the current input. */