function createKbd
createKbd(
key: string,
props?: KbdProps
): string

Create kbd HTML string

Examples

Example 1

const html = createKbd('Ctrl');

Parameters

key: string

Keyboard key

optional
props: KbdProps

Kbd configuration

Return Type

string

HTML string

Usage

import { createKbd } from ".";