Kyuubu関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
THE CUBE AS A REACT COMPONENT: a thin wrapper round CubeView, which does
the work. It fills the box it is given: with no className that box is a
square as wide as its container, and a className must position it
(relative or absolute) and give it a size.
インポート
import { Kyuubu } from "@johnmorrisdotca/kyuubu/react";
定義
function Kyuubu({ ref, className, style, size, state, interactive: interactiveGiven, hint, onTurn, onLook, ...rest }: KyuubuProps): React.JSX.Element
引数
| 名前 | 型 | 説明 |
|---|---|---|
options | KyuubuProps | Options for this call; omitted fields retain their documented defaults. |
戻り値
React.JSX.Element
A React host element that mounts and maintains a CubeView in the browser.
例
import { Kyuubu } from "@johnmorrisdotca/kyuubu/react";
import { createElement } from "react";
console.log(createElement(Kyuubu, { size: 3, interactive: true }).props.size);3出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。