Reference
Register puzzle elements
import { … } from "@johnmorrisdotca/kazu/element/define";
27.7 kB minified and gzipped, with everything it imports (measured with esbuild)
Defines the <kazu-board> element on the page. Import it for its effect:
<script type="module" src="https://cdn.jsdelivr.net/npm/@johnmorrisdotca/kazu@1/dist/element-define.js"></script>
<kazu-board kind="number-place" size="9" level="medium"></kazu-board>A tag already defined is left as it is, and on a server, where there is no page, nothing happens.
Exports
| Name | Kind | What it is |
|---|---|---|
defineBoard | function | Register a standard or custom board tag without replacing a definition. |
KAZU_EMBED_OPTION_KEYS | constant | Every mounted-board option, kept complete by TypeScript and checked by the builder. |
KazuBoard | class | Native custom element with reflected setup and presentation. |
KazuElementOptions | type | Host callbacks; the same actions also emit native events. |