geez-input-svelte
v1.0.2
Published
Type-safe Svelte library for Geez (Ethiopic) script input with phonetic keyboard support
Maintainers
Readme
Geez Input Svelte
A type-safe Svelte library for Geez (Ethiopic) script input with phonetic keyboard support. Write Amharic, Tigrinya, and other Ethiopic languages using Latin characters that automatically transform to Geez script.
Installation
npm install geez-input-svelte geez-inputNote: geez-input is a peer dependency required for the core engine.
Quick Start
<script>
import { GeezInput, GeezTextArea } from 'geez-input-svelte'
let name = ''
let story = ''
</script>
<GeezInput bind:value={name} placeholder="Type in Geez..." />
<GeezTextArea bind:value={story} placeholder="Write longer text..." />Components
GeezInput
A Svelte input component with built-in Geez phonetic keyboard support.
Props:
- All standard HTML input attributes
mode?: "geez" | "latin"- Input mode (default:"geez")value?: string | number | null- bind:value valueclassName?: string- CSS class namegeezOptions?: GeezOptions- Options for the Geez engine
GeezTextArea
A Svelte textarea component with built-in Geez phonetic keyboard support.
Props:
- All standard HTML textarea attributes
mode?: "geez" | "latin"- Input mode (default:"geez")value?: string | number | null- bind:value valueclassName?: string- CSS class namegeezOptions?: GeezOptions- Options for the Geez engine
Action
useGeez
You can also use the useGeez action directly for custom implementations:
<script>
import { useGeez } from 'geez-input-svelte'
let value = ''
</script>
<input use:useGeez={{ mode: 'geez' }} bind:value />License
MIT
