Skip to main content

Type Alias: VirtualKeyboardRow

VirtualKeyboardRow: (string | string[] | KeyConfiguration)[]

A row in the VirtualKeyboard.

Remarks

Each row is an array of objects that defines a key, where each object can be one of the following:

  • a string, e.g., a. The string is the key in the keyboard's unshifted state (a), and the string's value after applying toUpperCase() is the key in the keyboard's shifted state (A).
  • an array of two strings, e.g., ["1", "!"]. The first string is the key in the keyboard's unshifted state (1), and the second string is the key in the keyboard's shifted state (!).
  • A KeyConfiguration object, which can be used to further customize the key's appearance and behavior.

Defined in

m2c2kit/packages/addons/src/composites/virtual-keyboard.ts:64