Reference
React components
import { … } from "@johnmorrisdotca/hitotsu/react";
54.4 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
HitotsuCardDrawing | function | One card's drawing, to go inside any SVG whose box is 100 by 140: a face, or the back for null. |
HitotsuCardImage | function | A card as a whole SVG, sized by its parent or its own width: <HitotsuCardImage card="R70" width={80} />. |
HitotsuTable | function | A whole table, you against computers, as a React component: <HitotsuTable rules={HITOTSU_PARTY} players={["You", "Aki", "Ben"]} />. |
HitotsuTableProps | type | Native table settings and div attributes for the React component, with an optional onReady callback. |