@haklex/rich-renderer-ruby
v0.0.82
Published
Ruby annotation renderer for haklex rich editor
Readme
@haklex/rich-renderer-ruby
Ruby annotation renderer for CJK text, providing furigana (reading aids) above base characters.
Installation
pnpm add @haklex/rich-renderer-rubyPeer Dependencies
| Package | Version |
| --- | --- |
| react | >=19 |
| react-dom | >=19 |
Usage
import { RubyRenderer } from '@haklex/rich-renderer-ruby/static'
// Register in a static RendererConfig
const rendererConfig = {
// ...other renderers
ruby: RubyRenderer,
}For edit mode:
import { RubyEditRenderer } from '@haklex/rich-renderer-ruby'
const editRendererConfig = {
// ...other renderers
ruby: RubyEditRenderer,
}Exports
Components
RubyRenderer— Static (read-only) renderer for ruby annotationsRubyEditRenderer— Edit (interactive) renderer with annotation editing
Types
RubyRendererProps— Props interface for the ruby renderer component
Sub-path Exports
| Path | Description |
| --- | --- |
| @haklex/rich-renderer-ruby | Full exports (edit + static) |
| @haklex/rich-renderer-ruby/static | Static-only renderer |
| @haklex/rich-renderer-ruby/style.css | Stylesheet |
Part of Haklex
This package is part of the Haklex rich editor ecosystem.
License
MIT
