react-furigana
Version:
A simple React component for handling Japanese text with furigana.
12 lines (11 loc) • 371 B
TypeScript
import { default as React } from 'react';
import { Token } from './tokenizer';
type ReactFuriganaProps = {
text: string;
separator?: string;
leftBracket?: string;
rightBracket?: string;
render?: (token: Token) => React.ReactNode;
};
export declare function ReactFurigana(props: ReactFuriganaProps): import("react/jsx-runtime").JSX.Element;
export {};