🚧 Documentation under construction
Visit the demo to see the wordle clone in action.
- A new word every day
- Responsive design
- Mobile friendly
- Virtual Keyboard
It returns a keyboard instance.
const $keyboard = createKeyboard();
Disable the virtual keyboard and turn off every keyboard event.
$keyboard.disable();
A keyboard event listener.
$keyboard.on('key', key => console.log('Pressed key: ', key));
Parameter | Type | Description | Required |
---|---|---|---|
type |
string |
Type of the event | Yes |
callback |
function |
A callback called when the event is trigged | Yes |
It receives an array of keys and returns the interface to manage them on the virtual keyboard.
const $keys = $keyboard.keys(['h', 'o', 'u', 's', 'e']);
Parameter | Type | Description | Required |
---|---|---|---|
keys |
string[] |
A list of letters | Yes |
Made with ❤️ by Ricky Almeida