Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/satohshi/svelte-autokana
Svelteでふりがなを自動で入力するためのAction
https://github.com/satohshi/svelte-autokana
japanese svelte
Last synced: about 2 months ago
JSON representation
Svelteでふりがなを自動で入力するためのAction
- Host: GitHub
- URL: https://github.com/satohshi/svelte-autokana
- Owner: satohshi
- Created: 2024-06-13T18:13:41.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-11-04T18:27:51.000Z (3 months ago)
- Last Synced: 2024-12-04T19:03:33.709Z (2 months ago)
- Topics: japanese, svelte
- Language: TypeScript
- Homepage:
- Size: 71.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# svelte-autokana
ふりがなを自動で入力するためのSvelte Action
## Installation
```bash
npm i svelte-autokana
``````bash
pnpm add svelte-autokana
```## Usage
```svelte
import { autoKana } from 'svelte-autokana'
// runes mode
let kanaInput = $state<HTMLInputElement>()!// legacy mode
let kanaInput: HTMLInputElement名前
名前(かな)
```
## Parameters
| Name | Type | Default value | Description |
| --------- | :----------------: | :-----------: | ---------------------------- |
| kanaInput | `HTMLInputElement` | `undefined` | ふりがな用\ |
| katakana | `boolean` | `false` | `true`の場合、出力はカタカナ |