本文へ移動

Korokoroコロコロ

ダイスを組み合わせて振り、ダイス表記を読み取り、正確な確率を調べます。履歴の保存やシードを指定した再現もできます。

「コロコロ」は、小さなものが転がる様子を表す言葉です。 名前について(英語)

目次

リファレンス · Reactコンポーネント

DiceRollerProps型

リファレンスの説明と例は英語です。見出しと目次は日本語です。

The tray's options as props, notation as a shorter way to give the dice, and any attribute for the <div> the tray is mounted in.

インポート

import type { DiceRollerProps } from "@johnmorrisdotca/korokoro/react";

定義

type DiceRollerProps = RollerOptions & {
    notation?: string;
} & Omit<HTMLAttributes<HTMLDivElement>, keyof RollerOptions | "notation">;

メンバー

名前型説明
locale (省略可)string | undefined

For numbers and times, and for which built-in words to use: "ja…" is Japanese, anything else English.

strings (省略可)Partial<RollerStrings> | undefined

Words to use instead of the built-in ones.

storage (省略可)StorageLike | null | undefined

Where the history is kept. Defaults to localStorage; pass null to keep nothing.

storageKey (省略可)string | undefined

The key the history is kept under. Defaults to "korokoro.history".

spec (省略可)Partial<RollSpec> | undefined

The dice showing when the tray opens.

query (省略可)string | undefined

A query string that may hold a shared roll or a seed. Defaults to the page's own.

shareBase (省略可)string | undefined

The address a shared link points at. Defaults to the page's own, without its query.

cloth (省略可)"green" | "blue" | "red" | "black" | "wood" | undefined

The cloth the felt is laid in: "green" (unless said), "blue", "red", "black" or "wood", the family's five. theme is laid over it.

onePip (省略可)"red" | "black" | undefined

The colour of a d6's one pip, on the felt and in the history: "red" (unless said) or "black", the colour of the other pips.

theme (省略可)Record<`--kk-${string}`, string> | undefined

CSS variables for the tray, such as { "--kk-felt": "#234" }: set on the tray itself, so they win over its defaults in both themes.

wide (省略可)boolean | undefined

Tray and panels side by side on a wide screen.

onRoll (省略可)((roll: Roll) => void) | undefined

Called once each roll has landed.

animationMs (省略可)number | undefined

Length of the tumble, in milliseconds, from the throw to the last die landing. Reduced motion always skips it.

sound (省略可)boolean | undefined

Whether the tray has a sound at all. Left out or true, it has a mute button, and starts with the sound on unless the device asks for reduced motion or somebody muted it here before. False, it is silent and has no button.

playSound (省略可)PlaySound | undefined

A sound of your own for each throw, in place of the recorded dice. It is called only while the tray is not muted.

hold (省略可)boolean | undefined

Whether a die on the felt can be tapped to hold it while the rest are rolled again. Left out or true, plain dice can be held once they have been rolled. False, a tap anywhere on the felt rolls, a die included.

placeholder (省略可)boolean | undefined

Whether the dice the tray opens with are only a suggestion. Left out or true, they are: the first die button tapped replaces them with one of that die, so one tap gives a d20, and every tap after that adds. False, the opening dice are the user's own roll and the first tap adds to them. A roll that arrives by a shared link is always the user's.

keyboard (省略可)boolean | undefined

Whether Space rolls from anywhere on the page. Left out or true, it does, unless something that takes typing has the focus. False, the page keeps its Space (to scroll, say) and the tray rolls from the keyboard only when the focus is inside it: for a tray that is one thing among many on a page.

diceWar (省略可)boolean | undefined

Whether Dice War is among the games: a table of the person at the tray and computers, played with the tray's own dice (diceWar.ts has the rules). Off unless asked for, so a tray that does not want a game in it is as it was.

languageChooser (省略可)boolean | undefined

Whether the tray offers its own small choice of language, English or 日本語, remembered on the device. Off unless asked for, so the tray stays as plain as it was.

size (省略可)RollerSize | undefined

How much of the tray is drawn, for a tray put into a small space on somebody's page. "small" is the felt and the result and nothing else: the dice are the ones it was given. "medium" adds the choice of dice and the bonus. "large", and left out, is everything: the history, the stats and the odds too.

notation (省略可)string | undefined

The dice showing at first, as notation: "2d20kh1+5". It wins over spec when both are given, and the tray follows it when it changes.

defaultChecked (省略可)boolean | undefined
defaultValue (省略可)string | number | readonly string[] | undefined
suppressContentEditableWarning (省略可)boolean | undefined
suppressHydrationWarning (省略可)boolean | undefined
accessKey (省略可)string | undefined
autoCapitalize (省略可)"off" | "none" | "on" | "sentences" | "words" | "characters" | (string & {}) | undefined
autoFocus (省略可)boolean | undefined
className (省略可)string | undefined
contentEditable (省略可)Booleanish | "inherit" | "plaintext-only" | undefined
contextMenu (省略可)string | undefined
dir (省略可)string | undefined
draggable (省略可)Booleanish | undefined
enterKeyHint (省略可)"enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined
hidden (省略可)boolean | undefined
id (省略可)string | undefined
lang (省略可)string | undefined
nonce (省略可)string | undefined
slot (省略可)string | undefined
spellCheck (省略可)Booleanish | undefined
style (省略可)React.CSSProperties | undefined
tabIndex (省略可)number | undefined
title (省略可)string | undefined
translate (省略可)"yes" | "no" | undefined
radioGroup (省略可)string | undefined
role (省略可)React.AriaRole | undefined
about (省略可)string | undefined
content (省略可)string | undefined
datatype (省略可)string | undefined
inlist (省略可)any
prefix (省略可)string | undefined
property (省略可)string | undefined
rel (省略可)string | undefined
resource (省略可)string | undefined
rev (省略可)string | undefined
typeof (省略可)string | undefined
vocab (省略可)string | undefined
autoCorrect (省略可)string | undefined
autoSave (省略可)string | undefined
color (省略可)string | undefined
itemProp (省略可)string | undefined
itemScope (省略可)boolean | undefined
itemType (省略可)string | undefined
itemID (省略可)string | undefined
itemRef (省略可)string | undefined
results (省略可)number | undefined
security (省略可)string | undefined
unselectable (省略可)"off" | "on" | undefined
popover (省略可)"" | "auto" | "manual" | "hint" | undefined
popoverTargetAction (省略可)"toggle" | "show" | "hide" | undefined
popoverTarget (省略可)string | undefined
inert (省略可)boolean | undefined
inputMode (省略可)"none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined

Hints at the type of data that might be entered by the user while editing the element or its contents

is (省略可)string | undefined

Specify that a standard HTML element should behave like a defined custom built-in element

exportparts (省略可)string | undefined
part (省略可)string | undefined
aria-activedescendant (省略可)string | undefined

Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.

aria-atomic (省略可)Booleanish | undefined

Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.

aria-autocomplete (省略可)"none" | "list" | "inline" | "both" | undefined

Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made.

aria-braillelabel (省略可)string | undefined

Defines a string value that labels the current element, which is intended to be converted into Braille.

aria-brailleroledescription (省略可)string | undefined

Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.

aria-busy (省略可)Booleanish | undefined
aria-checked (省略可)boolean | "true" | "false" | "mixed" | undefined

Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.

aria-colcount (省略可)number | undefined

Defines the total number of columns in a table, grid, or treegrid.

aria-colindex (省略可)number | undefined

Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.

aria-colindextext (省略可)string | undefined

Defines a human readable text alternative of aria-colindex.

aria-colspan (省略可)number | undefined

Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.

aria-controls (省略可)string | undefined

Identifies the element (or elements) whose contents or presence are controlled by the current element.

aria-current (省略可)boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined

Indicates the element that represents the current item within a container or set of related elements.

aria-describedby (省略可)string | undefined

Identifies the element (or elements) that describes the object.

aria-description (省略可)string | undefined

Defines a string value that describes or annotates the current element.

aria-details (省略可)string | undefined

Identifies the element that provides a detailed, extended description for the object.

aria-disabled (省略可)Booleanish | undefined

Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.

aria-dropeffect (省略可)"none" | "link" | "copy" | "execute" | "move" | "popup" | undefined

Indicates what functions can be performed when a dragged object is released on the drop target.

aria-errormessage (省略可)string | undefined

Identifies the element that provides an error message for the object.

aria-expanded (省略可)Booleanish | undefined

Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.

aria-flowto (省略可)string | undefined

Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order.

aria-grabbed (省略可)Booleanish | undefined

Indicates an element's "grabbed" state in a drag-and-drop operation.

aria-haspopup (省略可)boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined

Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.

aria-hidden (省略可)Booleanish | undefined

Indicates whether the element is exposed to an accessibility API.

aria-invalid (省略可)boolean | "true" | "false" | "grammar" | "spelling" | undefined

Indicates the entered value does not conform to the format expected by the application.

aria-keyshortcuts (省略可)string | undefined

Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.

aria-label (省略可)string | undefined

Defines a string value that labels the current element.

aria-labelledby (省略可)string | undefined

Identifies the element (or elements) that labels the current element.

aria-level (省略可)number | undefined

Defines the hierarchical level of an element within a structure.

aria-live (省略可)"off" | "assertive" | "polite" | undefined

Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.

aria-modal (省略可)Booleanish | undefined

Indicates whether an element is modal when displayed.

aria-multiline (省略可)Booleanish | undefined

Indicates whether a text box accepts multiple lines of input or only a single line.

aria-multiselectable (省略可)Booleanish | undefined

Indicates that the user may select more than one item from the current selectable descendants.

aria-orientation (省略可)"horizontal" | "vertical" | undefined

Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.

aria-owns (省略可)string | undefined

Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship.

aria-placeholder (省略可)string | undefined

Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format.

aria-posinset (省略可)number | undefined

Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.

aria-pressed (省略可)boolean | "true" | "false" | "mixed" | undefined

Indicates the current "pressed" state of toggle buttons.

aria-readonly (省略可)Booleanish | undefined

Indicates that the element is not editable, but is otherwise operable.

aria-relevant (省略可)"text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined

Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.

aria-required (省略可)Booleanish | undefined

Indicates that user input is required on the element before a form may be submitted.

aria-roledescription (省略可)string | undefined

Defines a human-readable, author-localized description for the role of an element.

aria-rowcount (省略可)number | undefined

Defines the total number of rows in a table, grid, or treegrid.

aria-rowindex (省略可)number | undefined

Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.

aria-rowindextext (省略可)string | undefined

Defines a human readable text alternative of aria-rowindex.

aria-rowspan (省略可)number | undefined

Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.

aria-selected (省略可)Booleanish | undefined

Indicates the current "selected" state of various widgets.

aria-setsize (省略可)number | undefined

Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.

aria-sort (省略可)"none" | "ascending" | "descending" | "other" | undefined

Indicates if items in a table or grid are sorted in ascending or descending order.

aria-valuemax (省略可)number | undefined

Defines the maximum allowed value for a range widget.

aria-valuemin (省略可)number | undefined

Defines the minimum allowed value for a range widget.

aria-valuenow (省略可)number | undefined

Defines the current value for a range widget.

aria-valuetext (省略可)string | undefined

Defines the human readable text alternative of aria-valuenow for a range widget.

children (省略可)React.ReactNode
dangerouslySetInnerHTML (省略可){ __html: string | TrustedHTML; } | undefined
onCopy (省略可)React.ClipboardEventHandler<HTMLDivElement> | undefined
onCopyCapture (省略可)React.ClipboardEventHandler<HTMLDivElement> | undefined
onCut (省略可)React.ClipboardEventHandler<HTMLDivElement> | undefined
onCutCapture (省略可)React.ClipboardEventHandler<HTMLDivElement> | undefined
onPaste (省略可)React.ClipboardEventHandler<HTMLDivElement> | undefined
onPasteCapture (省略可)React.ClipboardEventHandler<HTMLDivElement> | undefined
onCompositionEnd (省略可)React.CompositionEventHandler<HTMLDivElement> | undefined
onCompositionEndCapture (省略可)React.CompositionEventHandler<HTMLDivElement> | undefined
onCompositionStart (省略可)React.CompositionEventHandler<HTMLDivElement> | undefined
onCompositionStartCapture (省略可)React.CompositionEventHandler<HTMLDivElement> | undefined
onCompositionUpdate (省略可)React.CompositionEventHandler<HTMLDivElement> | undefined
onCompositionUpdateCapture (省略可)React.CompositionEventHandler<HTMLDivElement> | undefined
onFocus (省略可)React.FocusEventHandler<HTMLDivElement> | undefined
onFocusCapture (省略可)React.FocusEventHandler<HTMLDivElement> | undefined
onBlur (省略可)React.FocusEventHandler<HTMLDivElement> | undefined
onBlurCapture (省略可)React.FocusEventHandler<HTMLDivElement> | undefined
onChange (省略可)React.ChangeEventHandler<HTMLDivElement, Element> | undefined
onChangeCapture (省略可)React.ChangeEventHandler<HTMLDivElement, Element> | undefined
onBeforeInput (省略可)React.InputEventHandler<HTMLDivElement> | undefined
onBeforeInputCapture (省略可)React.InputEventHandler<HTMLDivElement> | undefined
onInput (省略可)React.InputEventHandler<HTMLDivElement> | undefined
onInputCapture (省略可)React.InputEventHandler<HTMLDivElement> | undefined
onReset (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onResetCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onSubmit (省略可)React.SubmitEventHandler<HTMLDivElement> | undefined
onSubmitCapture (省略可)React.SubmitEventHandler<HTMLDivElement> | undefined
onInvalid (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onInvalidCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onLoad (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onLoadCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onError (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onErrorCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onKeyDown (省略可)React.KeyboardEventHandler<HTMLDivElement> | undefined
onKeyDownCapture (省略可)React.KeyboardEventHandler<HTMLDivElement> | undefined
onKeyPress (省略可)React.KeyboardEventHandler<HTMLDivElement> | undefined
onKeyPressCapture (省略可)React.KeyboardEventHandler<HTMLDivElement> | undefined
onKeyUp (省略可)React.KeyboardEventHandler<HTMLDivElement> | undefined
onKeyUpCapture (省略可)React.KeyboardEventHandler<HTMLDivElement> | undefined
onAbort (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onAbortCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onCanPlay (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onCanPlayCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onCanPlayThrough (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onCanPlayThroughCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onDurationChange (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onDurationChangeCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onEmptied (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onEmptiedCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onEncrypted (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onEncryptedCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onEnded (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onEndedCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onLoadedData (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onLoadedDataCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onLoadedMetadata (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onLoadedMetadataCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onLoadStart (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onLoadStartCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onPause (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onPauseCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onPlay (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onPlayCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onPlaying (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onPlayingCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onProgress (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onProgressCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onRateChange (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onRateChangeCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onSeeked (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onSeekedCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onSeeking (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onSeekingCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onStalled (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onStalledCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onSuspend (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onSuspendCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onTimeUpdate (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onTimeUpdateCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onVolumeChange (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onVolumeChangeCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onWaiting (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onWaitingCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onAuxClick (省略可)React.MouseEventHandler<HTMLDivElement> | undefined
onAuxClickCapture (省略可)React.MouseEventHandler<HTMLDivElement> | undefined
onClick (省略可)React.MouseEventHandler<HTMLDivElement> | undefined
onClickCapture (省略可)React.MouseEventHandler<HTMLDivElement> | undefined
onContextMenu (省略可)React.MouseEventHandler<HTMLDivElement> | undefined
onContextMenuCapture (省略可)React.MouseEventHandler<HTMLDivElement> | undefined
onDoubleClick (省略可)React.MouseEventHandler<HTMLDivElement> | undefined
onDoubleClickCapture (省略可)React.MouseEventHandler<HTMLDivElement> | undefined
onDrag (省略可)React.DragEventHandler<HTMLDivElement> | undefined
onDragCapture (省略可)React.DragEventHandler<HTMLDivElement> | undefined
onDragEnd (省略可)React.DragEventHandler<HTMLDivElement> | undefined
onDragEndCapture (省略可)React.DragEventHandler<HTMLDivElement> | undefined
onDragEnter (省略可)React.DragEventHandler<HTMLDivElement> | undefined
onDragEnterCapture (省略可)React.DragEventHandler<HTMLDivElement> | undefined
onDragExit (省略可)React.DragEventHandler<HTMLDivElement> | undefined
onDragExitCapture (省略可)React.DragEventHandler<HTMLDivElement> | undefined
onDragLeave (省略可)React.DragEventHandler<HTMLDivElement> | undefined
onDragLeaveCapture (省略可)React.DragEventHandler<HTMLDivElement> | undefined
onDragOver (省略可)React.DragEventHandler<HTMLDivElement> | undefined
onDragOverCapture (省略可)React.DragEventHandler<HTMLDivElement> | undefined
onDragStart (省略可)React.DragEventHandler<HTMLDivElement> | undefined
onDragStartCapture (省略可)React.DragEventHandler<HTMLDivElement> | undefined
onDrop (省略可)React.DragEventHandler<HTMLDivElement> | undefined
onDropCapture (省略可)React.DragEventHandler<HTMLDivElement> | undefined
onMouseDown (省略可)React.MouseEventHandler<HTMLDivElement> | undefined
onMouseDownCapture (省略可)React.MouseEventHandler<HTMLDivElement> | undefined
onMouseEnter (省略可)React.MouseEventHandler<HTMLDivElement> | undefined
onMouseLeave (省略可)React.MouseEventHandler<HTMLDivElement> | undefined
onMouseMove (省略可)React.MouseEventHandler<HTMLDivElement> | undefined
onMouseMoveCapture (省略可)React.MouseEventHandler<HTMLDivElement> | undefined
onMouseOut (省略可)React.MouseEventHandler<HTMLDivElement> | undefined
onMouseOutCapture (省略可)React.MouseEventHandler<HTMLDivElement> | undefined
onMouseOver (省略可)React.MouseEventHandler<HTMLDivElement> | undefined
onMouseOverCapture (省略可)React.MouseEventHandler<HTMLDivElement> | undefined
onMouseUp (省略可)React.MouseEventHandler<HTMLDivElement> | undefined
onMouseUpCapture (省略可)React.MouseEventHandler<HTMLDivElement> | undefined
onSelect (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onSelectCapture (省略可)React.ReactEventHandler<HTMLDivElement> | undefined
onTouchCancel (省略可)React.TouchEventHandler<HTMLDivElement> | undefined
onTouchCancelCapture (省略可)React.TouchEventHandler<HTMLDivElement> | undefined
onTouchEnd (省略可)React.TouchEventHandler<HTMLDivElement> | undefined
onTouchEndCapture (省略可)React.TouchEventHandler<HTMLDivElement> | undefined
onTouchMove (省略可)React.TouchEventHandler<HTMLDivElement> | undefined
onTouchMoveCapture (省略可)React.TouchEventHandler<HTMLDivElement> | undefined
onTouchStart (省略可)React.TouchEventHandler<HTMLDivElement> | undefined
onTouchStartCapture (省略可)React.TouchEventHandler<HTMLDivElement> | undefined
onPointerDown (省略可)React.PointerEventHandler<HTMLDivElement> | undefined
onPointerDownCapture (省略可)React.PointerEventHandler<HTMLDivElement> | undefined
onPointerMove (省略可)React.PointerEventHandler<HTMLDivElement> | undefined
onPointerMoveCapture (省略可)React.PointerEventHandler<HTMLDivElement> | undefined
onPointerUp (省略可)React.PointerEventHandler<HTMLDivElement> | undefined
onPointerUpCapture (省略可)React.PointerEventHandler<HTMLDivElement> | undefined
onPointerCancel (省略可)React.PointerEventHandler<HTMLDivElement> | undefined
onPointerCancelCapture (省略可)React.PointerEventHandler<HTMLDivElement> | undefined
onPointerEnter (省略可)React.PointerEventHandler<HTMLDivElement> | undefined
onPointerLeave (省略可)React.PointerEventHandler<HTMLDivElement> | undefined
onPointerOver (省略可)React.PointerEventHandler<HTMLDivElement> | undefined
onPointerOverCapture (省略可)React.PointerEventHandler<HTMLDivElement> | undefined
onPointerOut (省略可)React.PointerEventHandler<HTMLDivElement> | undefined
onPointerOutCapture (省略可)React.PointerEventHandler<HTMLDivElement> | undefined
onGotPointerCapture (省略可)React.PointerEventHandler<HTMLDivElement> | undefined
onGotPointerCaptureCapture (省略可)React.PointerEventHandler<HTMLDivElement> | undefined
onLostPointerCapture (省略可)React.PointerEventHandler<HTMLDivElement> | undefined
onLostPointerCaptureCapture (省略可)React.PointerEventHandler<HTMLDivElement> | undefined
onScroll (省略可)React.UIEventHandler<HTMLDivElement> | undefined
onScrollCapture (省略可)React.UIEventHandler<HTMLDivElement> | undefined
onScrollEnd (省略可)React.UIEventHandler<HTMLDivElement> | undefined
onScrollEndCapture (省略可)React.UIEventHandler<HTMLDivElement> | undefined
onWheel (省略可)React.WheelEventHandler<HTMLDivElement> | undefined
onWheelCapture (省略可)React.WheelEventHandler<HTMLDivElement> | undefined
onAnimationStart (省略可)React.AnimationEventHandler<HTMLDivElement> | undefined
onAnimationStartCapture (省略可)React.AnimationEventHandler<HTMLDivElement> | undefined
onAnimationEnd (省略可)React.AnimationEventHandler<HTMLDivElement> | undefined
onAnimationEndCapture (省略可)React.AnimationEventHandler<HTMLDivElement> | undefined
onAnimationIteration (省略可)React.AnimationEventHandler<HTMLDivElement> | undefined
onAnimationIterationCapture (省略可)React.AnimationEventHandler<HTMLDivElement> | undefined
onToggle (省略可)React.ToggleEventHandler<HTMLDivElement> | undefined
onBeforeToggle (省略可)React.ToggleEventHandler<HTMLDivElement> | undefined
onTransitionCancel (省略可)React.TransitionEventHandler<HTMLDivElement> | undefined
onTransitionCancelCapture (省略可)React.TransitionEventHandler<HTMLDivElement> | undefined
onTransitionEnd (省略可)React.TransitionEventHandler<HTMLDivElement> | undefined
onTransitionEndCapture (省略可)React.TransitionEventHandler<HTMLDivElement> | undefined
onTransitionRun (省略可)React.TransitionEventHandler<HTMLDivElement> | undefined
onTransitionRunCapture (省略可)React.TransitionEventHandler<HTMLDivElement> | undefined
onTransitionStart (省略可)React.TransitionEventHandler<HTMLDivElement> | undefined
onTransitionStartCapture (省略可)React.TransitionEventHandler<HTMLDivElement> | undefined

例

import type { DiceRollerProps } from "@johnmorrisdotca/korokoro/react";
const value: DiceRollerProps = { notation: "2d6", sound: false };
console.log(value.notation);
2d6

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/korokoro 1.16.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。