Quick start
Attach, type, detach
One import per layout, one call. The panel appears after the field. A key types at the caret, replaces any selection, and keeps the focus in the field. kb.detach() removes the panel and undoes every side effect.
import { KurdishKeyboard } from "kurdish-keyboard";
import "kurdish-keyboard/styles.css"; // optional, recommended
import { soraniLayout } from "kurdish-keyboard/layouts/sorani";
const kb = KurdishKeyboard.attachTo(document.querySelector("input"), {
layout: soraniLayout,
});
// later: kb.detach()Live
| Option | Type | Default | What it does |
|---|---|---|---|
layout | Layout | minimal panel | The layout to show. Import one per script, or give your own. |
adapter | InsertionAdapter | built-in | Your own insertion for framework editors. See “Rich text” below. |
suppressNative | boolean | false | Sets inputmode="none", so phones keep their own keyboard hidden. |
position | 'inline' | 'docked' | 'floating' | 'inline' | Where the panel goes. See “Mobile” below. |
labelLanguage | 'en' | 'ku' | 'en' | Language of the screen-reader labels (Shift, Space, …). |