リファレンス
Reactコンポーネント
import { … } from "@johnmorrisdotca/hitotsu/react";
最小化と gzip 圧縮をしたサイズは 54.4 kB(読み込むものをすべて含み、esbuild で計測)
リファレンスの説明と例は英語です。見出しと目次は日本語です。
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
HitotsuCardDrawing | 関数 | One card's drawing, to go inside any SVG whose box is 100 by 140: a face, or the back for null. |
HitotsuCardImage | 関数 | A card as a whole SVG, sized by its parent or its own width: <HitotsuCardImage card="R70" width={80} />. |
HitotsuTable | 関数 | A whole table, you against computers, as a React component: <HitotsuTable rules={HITOTSU_PARTY} players={["You", "Aki", "Ben"]} />. |
HitotsuTableProps | 型 | Native table settings and div attributes for the React component, with an optional onReady callback. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。