Reference
Registration alias
import { … } from "@johnmorrisdotca/hitotsu/element-define";
42.7 kB minified and gzipped, with everything it imports (measured with esbuild)
<hitotsu-table>, registered by being imported:
<hitotsu-table rules="party" computers="3"></hitotsu-table>
The one module of the package that does something when it is imported, and
package.json says so, so that a bundler keeps it. ./element exports the
same class and defineHitotsuTable() with no effect of its own, for a page
that wants to choose when.
Exports
| Name | Kind | What it is |
|---|---|---|
defineHitotsuTable | function | Register a default or custom-tag native table; safe on servers and idempotent. |
defineTable | function | Standard table registration helper. |
HITOTSU_EMBED_OPTION_KEYS | constant | Native option keys checked by the builder. |
HitotsuElementOptions | type | Host-only settings, including custom house rules and private names. |
HitotsuTableElement | class | A native playable colour-card table with reflected settings. |