DiceRollerPropstype
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 it
import type { DiceRollerProps } from "@johnmorrisdotca/korokoro/react";
Definition
type DiceRollerProps = RollerOptions & {
notation?: string;
} & Omit<HTMLAttributes<HTMLDivElement>, keyof RollerOptions | "notation">;
Members
| Name | Type | Description |
|---|---|---|
locale (optional) | string | undefined | For numbers and times, and for which built-in words to use: "ja…" is Japanese, anything else English. |
strings (optional) | Partial<RollerStrings> | undefined | Words to use instead of the built-in ones. |
storage (optional) | StorageLike | null | undefined | Where the history is kept. Defaults to localStorage; pass null to keep nothing. |
storageKey (optional) | string | undefined | The key the history is kept under. Defaults to "korokoro.history". |
spec (optional) | Partial<RollSpec> | undefined | The dice showing when the tray opens. |
query (optional) | string | undefined | A query string that may hold a shared roll or a seed. Defaults to the page's own. |
shareBase (optional) | string | undefined | The address a shared link points at. Defaults to the page's own, without its query. |
cloth (optional) | "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. |
onePip (optional) | "red" | "black" | undefined | The colour of a d6's one pip, on the felt and in the history: |
theme (optional) | Record<`--kk-${string}`, string> | undefined | CSS variables for the tray, such as |
wide (optional) | boolean | undefined | Tray and panels side by side on a wide screen. |
onRoll (optional) | ((roll: Roll) => void) | undefined | Called once each roll has landed. |
animationMs (optional) | number | undefined | Length of the tumble, in milliseconds, from the throw to the last die landing. Reduced motion always skips it. |
sound (optional) | 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 (optional) | 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 (optional) | 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 (optional) | 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 (optional) | 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 (optional) | 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
( |
languageChooser (optional) | 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 (optional) | 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 (optional) | string | undefined | The dice showing at first, as notation: "2d20kh1+5". It wins over |
defaultChecked (optional) | boolean | undefined | |
defaultValue (optional) | string | number | readonly string[] | undefined | |
suppressContentEditableWarning (optional) | boolean | undefined | |
suppressHydrationWarning (optional) | boolean | undefined | |
accessKey (optional) | string | undefined | |
autoCapitalize (optional) | "off" | "none" | "on" | "sentences" | "words" | "characters" | (string & {}) | undefined | |
autoFocus (optional) | boolean | undefined | |
className (optional) | string | undefined | |
contentEditable (optional) | Booleanish | "inherit" | "plaintext-only" | undefined | |
contextMenu (optional) | string | undefined | |
dir (optional) | string | undefined | |
draggable (optional) | Booleanish | undefined | |
enterKeyHint (optional) | "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | |
hidden (optional) | boolean | undefined | |
id (optional) | string | undefined | |
lang (optional) | string | undefined | |
nonce (optional) | string | undefined | |
slot (optional) | string | undefined | |
spellCheck (optional) | Booleanish | undefined | |
style (optional) | React.CSSProperties | undefined | |
tabIndex (optional) | number | undefined | |
title (optional) | string | undefined | |
translate (optional) | "yes" | "no" | undefined | |
radioGroup (optional) | string | undefined | |
role (optional) | React.AriaRole | undefined | |
about (optional) | string | undefined | |
content (optional) | string | undefined | |
datatype (optional) | string | undefined | |
inlist (optional) | any | |
prefix (optional) | string | undefined | |
property (optional) | string | undefined | |
rel (optional) | string | undefined | |
resource (optional) | string | undefined | |
rev (optional) | string | undefined | |
typeof (optional) | string | undefined | |
vocab (optional) | string | undefined | |
autoCorrect (optional) | string | undefined | |
autoSave (optional) | string | undefined | |
color (optional) | string | undefined | |
itemProp (optional) | string | undefined | |
itemScope (optional) | boolean | undefined | |
itemType (optional) | string | undefined | |
itemID (optional) | string | undefined | |
itemRef (optional) | string | undefined | |
results (optional) | number | undefined | |
security (optional) | string | undefined | |
unselectable (optional) | "off" | "on" | undefined | |
popover (optional) | "" | "auto" | "manual" | "hint" | undefined | |
popoverTargetAction (optional) | "toggle" | "show" | "hide" | undefined | |
popoverTarget (optional) | string | undefined | |
inert (optional) | boolean | undefined | |
inputMode (optional) | "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 (optional) | string | undefined | Specify that a standard HTML element should behave like a defined custom built-in element |
exportparts (optional) | string | undefined | |
part (optional) | string | undefined | |
aria-activedescendant (optional) | string | undefined | Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. |
aria-atomic (optional) | 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 (optional) | "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 (optional) | string | undefined | Defines a string value that labels the current element, which is intended to be converted into Braille. |
aria-brailleroledescription (optional) | 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 (optional) | Booleanish | undefined | |
aria-checked (optional) | boolean | "true" | "false" | "mixed" | undefined | Indicates the current "checked" state of checkboxes, radio buttons, and other widgets. |
aria-colcount (optional) | number | undefined | Defines the total number of columns in a table, grid, or treegrid. |
aria-colindex (optional) | 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 (optional) | string | undefined | Defines a human readable text alternative of aria-colindex. |
aria-colspan (optional) | number | undefined | Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid. |
aria-controls (optional) | string | undefined | Identifies the element (or elements) whose contents or presence are controlled by the current element. |
aria-current (optional) | 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 (optional) | string | undefined | Identifies the element (or elements) that describes the object. |
aria-description (optional) | string | undefined | Defines a string value that describes or annotates the current element. |
aria-details (optional) | string | undefined | Identifies the element that provides a detailed, extended description for the object. |
aria-disabled (optional) | Booleanish | undefined | Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. |
aria-dropeffect (optional) | "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 (optional) | string | undefined | Identifies the element that provides an error message for the object. |
aria-expanded (optional) | Booleanish | undefined | Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. |
aria-flowto (optional) | 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 (optional) | Booleanish | undefined | Indicates an element's "grabbed" state in a drag-and-drop operation. |
aria-haspopup (optional) | 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 (optional) | Booleanish | undefined | Indicates whether the element is exposed to an accessibility API. |
aria-invalid (optional) | boolean | "true" | "false" | "grammar" | "spelling" | undefined | Indicates the entered value does not conform to the format expected by the application. |
aria-keyshortcuts (optional) | string | undefined | Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. |
aria-label (optional) | string | undefined | Defines a string value that labels the current element. |
aria-labelledby (optional) | string | undefined | Identifies the element (or elements) that labels the current element. |
aria-level (optional) | number | undefined | Defines the hierarchical level of an element within a structure. |
aria-live (optional) | "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 (optional) | Booleanish | undefined | Indicates whether an element is modal when displayed. |
aria-multiline (optional) | Booleanish | undefined | Indicates whether a text box accepts multiple lines of input or only a single line. |
aria-multiselectable (optional) | Booleanish | undefined | Indicates that the user may select more than one item from the current selectable descendants. |
aria-orientation (optional) | "horizontal" | "vertical" | undefined | Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. |
aria-owns (optional) | 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 (optional) | 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 (optional) | 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 (optional) | boolean | "true" | "false" | "mixed" | undefined | Indicates the current "pressed" state of toggle buttons. |
aria-readonly (optional) | Booleanish | undefined | Indicates that the element is not editable, but is otherwise operable. |
aria-relevant (optional) | "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 (optional) | Booleanish | undefined | Indicates that user input is required on the element before a form may be submitted. |
aria-roledescription (optional) | string | undefined | Defines a human-readable, author-localized description for the role of an element. |
aria-rowcount (optional) | number | undefined | Defines the total number of rows in a table, grid, or treegrid. |
aria-rowindex (optional) | 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 (optional) | string | undefined | Defines a human readable text alternative of aria-rowindex. |
aria-rowspan (optional) | number | undefined | Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid. |
aria-selected (optional) | Booleanish | undefined | Indicates the current "selected" state of various widgets. |
aria-setsize (optional) | 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 (optional) | "none" | "ascending" | "descending" | "other" | undefined | Indicates if items in a table or grid are sorted in ascending or descending order. |
aria-valuemax (optional) | number | undefined | Defines the maximum allowed value for a range widget. |
aria-valuemin (optional) | number | undefined | Defines the minimum allowed value for a range widget. |
aria-valuenow (optional) | number | undefined | Defines the current value for a range widget. |
aria-valuetext (optional) | string | undefined | Defines the human readable text alternative of aria-valuenow for a range widget. |
children (optional) | React.ReactNode | |
dangerouslySetInnerHTML (optional) | { __html: string | TrustedHTML; } | undefined | |
onCopy (optional) | React.ClipboardEventHandler<HTMLDivElement> | undefined | |
onCopyCapture (optional) | React.ClipboardEventHandler<HTMLDivElement> | undefined | |
onCut (optional) | React.ClipboardEventHandler<HTMLDivElement> | undefined | |
onCutCapture (optional) | React.ClipboardEventHandler<HTMLDivElement> | undefined | |
onPaste (optional) | React.ClipboardEventHandler<HTMLDivElement> | undefined | |
onPasteCapture (optional) | React.ClipboardEventHandler<HTMLDivElement> | undefined | |
onCompositionEnd (optional) | React.CompositionEventHandler<HTMLDivElement> | undefined | |
onCompositionEndCapture (optional) | React.CompositionEventHandler<HTMLDivElement> | undefined | |
onCompositionStart (optional) | React.CompositionEventHandler<HTMLDivElement> | undefined | |
onCompositionStartCapture (optional) | React.CompositionEventHandler<HTMLDivElement> | undefined | |
onCompositionUpdate (optional) | React.CompositionEventHandler<HTMLDivElement> | undefined | |
onCompositionUpdateCapture (optional) | React.CompositionEventHandler<HTMLDivElement> | undefined | |
onFocus (optional) | React.FocusEventHandler<HTMLDivElement> | undefined | |
onFocusCapture (optional) | React.FocusEventHandler<HTMLDivElement> | undefined | |
onBlur (optional) | React.FocusEventHandler<HTMLDivElement> | undefined | |
onBlurCapture (optional) | React.FocusEventHandler<HTMLDivElement> | undefined | |
onChange (optional) | React.ChangeEventHandler<HTMLDivElement, Element> | undefined | |
onChangeCapture (optional) | React.ChangeEventHandler<HTMLDivElement, Element> | undefined | |
onBeforeInput (optional) | React.InputEventHandler<HTMLDivElement> | undefined | |
onBeforeInputCapture (optional) | React.InputEventHandler<HTMLDivElement> | undefined | |
onInput (optional) | React.InputEventHandler<HTMLDivElement> | undefined | |
onInputCapture (optional) | React.InputEventHandler<HTMLDivElement> | undefined | |
onReset (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onResetCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onSubmit (optional) | React.SubmitEventHandler<HTMLDivElement> | undefined | |
onSubmitCapture (optional) | React.SubmitEventHandler<HTMLDivElement> | undefined | |
onInvalid (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onInvalidCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onLoad (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onLoadCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onError (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onErrorCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onKeyDown (optional) | React.KeyboardEventHandler<HTMLDivElement> | undefined | |
onKeyDownCapture (optional) | React.KeyboardEventHandler<HTMLDivElement> | undefined | |
onKeyPress (optional) | React.KeyboardEventHandler<HTMLDivElement> | undefined | |
onKeyPressCapture (optional) | React.KeyboardEventHandler<HTMLDivElement> | undefined | |
onKeyUp (optional) | React.KeyboardEventHandler<HTMLDivElement> | undefined | |
onKeyUpCapture (optional) | React.KeyboardEventHandler<HTMLDivElement> | undefined | |
onAbort (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onAbortCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onCanPlay (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onCanPlayCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onCanPlayThrough (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onCanPlayThroughCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onDurationChange (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onDurationChangeCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onEmptied (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onEmptiedCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onEncrypted (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onEncryptedCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onEnded (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onEndedCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onLoadedData (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onLoadedDataCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onLoadedMetadata (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onLoadedMetadataCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onLoadStart (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onLoadStartCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onPause (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onPauseCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onPlay (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onPlayCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onPlaying (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onPlayingCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onProgress (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onProgressCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onRateChange (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onRateChangeCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onSeeked (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onSeekedCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onSeeking (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onSeekingCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onStalled (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onStalledCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onSuspend (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onSuspendCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onTimeUpdate (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onTimeUpdateCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onVolumeChange (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onVolumeChangeCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onWaiting (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onWaitingCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onAuxClick (optional) | React.MouseEventHandler<HTMLDivElement> | undefined | |
onAuxClickCapture (optional) | React.MouseEventHandler<HTMLDivElement> | undefined | |
onClick (optional) | React.MouseEventHandler<HTMLDivElement> | undefined | |
onClickCapture (optional) | React.MouseEventHandler<HTMLDivElement> | undefined | |
onContextMenu (optional) | React.MouseEventHandler<HTMLDivElement> | undefined | |
onContextMenuCapture (optional) | React.MouseEventHandler<HTMLDivElement> | undefined | |
onDoubleClick (optional) | React.MouseEventHandler<HTMLDivElement> | undefined | |
onDoubleClickCapture (optional) | React.MouseEventHandler<HTMLDivElement> | undefined | |
onDrag (optional) | React.DragEventHandler<HTMLDivElement> | undefined | |
onDragCapture (optional) | React.DragEventHandler<HTMLDivElement> | undefined | |
onDragEnd (optional) | React.DragEventHandler<HTMLDivElement> | undefined | |
onDragEndCapture (optional) | React.DragEventHandler<HTMLDivElement> | undefined | |
onDragEnter (optional) | React.DragEventHandler<HTMLDivElement> | undefined | |
onDragEnterCapture (optional) | React.DragEventHandler<HTMLDivElement> | undefined | |
onDragExit (optional) | React.DragEventHandler<HTMLDivElement> | undefined | |
onDragExitCapture (optional) | React.DragEventHandler<HTMLDivElement> | undefined | |
onDragLeave (optional) | React.DragEventHandler<HTMLDivElement> | undefined | |
onDragLeaveCapture (optional) | React.DragEventHandler<HTMLDivElement> | undefined | |
onDragOver (optional) | React.DragEventHandler<HTMLDivElement> | undefined | |
onDragOverCapture (optional) | React.DragEventHandler<HTMLDivElement> | undefined | |
onDragStart (optional) | React.DragEventHandler<HTMLDivElement> | undefined | |
onDragStartCapture (optional) | React.DragEventHandler<HTMLDivElement> | undefined | |
onDrop (optional) | React.DragEventHandler<HTMLDivElement> | undefined | |
onDropCapture (optional) | React.DragEventHandler<HTMLDivElement> | undefined | |
onMouseDown (optional) | React.MouseEventHandler<HTMLDivElement> | undefined | |
onMouseDownCapture (optional) | React.MouseEventHandler<HTMLDivElement> | undefined | |
onMouseEnter (optional) | React.MouseEventHandler<HTMLDivElement> | undefined | |
onMouseLeave (optional) | React.MouseEventHandler<HTMLDivElement> | undefined | |
onMouseMove (optional) | React.MouseEventHandler<HTMLDivElement> | undefined | |
onMouseMoveCapture (optional) | React.MouseEventHandler<HTMLDivElement> | undefined | |
onMouseOut (optional) | React.MouseEventHandler<HTMLDivElement> | undefined | |
onMouseOutCapture (optional) | React.MouseEventHandler<HTMLDivElement> | undefined | |
onMouseOver (optional) | React.MouseEventHandler<HTMLDivElement> | undefined | |
onMouseOverCapture (optional) | React.MouseEventHandler<HTMLDivElement> | undefined | |
onMouseUp (optional) | React.MouseEventHandler<HTMLDivElement> | undefined | |
onMouseUpCapture (optional) | React.MouseEventHandler<HTMLDivElement> | undefined | |
onSelect (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onSelectCapture (optional) | React.ReactEventHandler<HTMLDivElement> | undefined | |
onTouchCancel (optional) | React.TouchEventHandler<HTMLDivElement> | undefined | |
onTouchCancelCapture (optional) | React.TouchEventHandler<HTMLDivElement> | undefined | |
onTouchEnd (optional) | React.TouchEventHandler<HTMLDivElement> | undefined | |
onTouchEndCapture (optional) | React.TouchEventHandler<HTMLDivElement> | undefined | |
onTouchMove (optional) | React.TouchEventHandler<HTMLDivElement> | undefined | |
onTouchMoveCapture (optional) | React.TouchEventHandler<HTMLDivElement> | undefined | |
onTouchStart (optional) | React.TouchEventHandler<HTMLDivElement> | undefined | |
onTouchStartCapture (optional) | React.TouchEventHandler<HTMLDivElement> | undefined | |
onPointerDown (optional) | React.PointerEventHandler<HTMLDivElement> | undefined | |
onPointerDownCapture (optional) | React.PointerEventHandler<HTMLDivElement> | undefined | |
onPointerMove (optional) | React.PointerEventHandler<HTMLDivElement> | undefined | |
onPointerMoveCapture (optional) | React.PointerEventHandler<HTMLDivElement> | undefined | |
onPointerUp (optional) | React.PointerEventHandler<HTMLDivElement> | undefined | |
onPointerUpCapture (optional) | React.PointerEventHandler<HTMLDivElement> | undefined | |
onPointerCancel (optional) | React.PointerEventHandler<HTMLDivElement> | undefined | |
onPointerCancelCapture (optional) | React.PointerEventHandler<HTMLDivElement> | undefined | |
onPointerEnter (optional) | React.PointerEventHandler<HTMLDivElement> | undefined | |
onPointerLeave (optional) | React.PointerEventHandler<HTMLDivElement> | undefined | |
onPointerOver (optional) | React.PointerEventHandler<HTMLDivElement> | undefined | |
onPointerOverCapture (optional) | React.PointerEventHandler<HTMLDivElement> | undefined | |
onPointerOut (optional) | React.PointerEventHandler<HTMLDivElement> | undefined | |
onPointerOutCapture (optional) | React.PointerEventHandler<HTMLDivElement> | undefined | |
onGotPointerCapture (optional) | React.PointerEventHandler<HTMLDivElement> | undefined | |
onGotPointerCaptureCapture (optional) | React.PointerEventHandler<HTMLDivElement> | undefined | |
onLostPointerCapture (optional) | React.PointerEventHandler<HTMLDivElement> | undefined | |
onLostPointerCaptureCapture (optional) | React.PointerEventHandler<HTMLDivElement> | undefined | |
onScroll (optional) | React.UIEventHandler<HTMLDivElement> | undefined | |
onScrollCapture (optional) | React.UIEventHandler<HTMLDivElement> | undefined | |
onScrollEnd (optional) | React.UIEventHandler<HTMLDivElement> | undefined | |
onScrollEndCapture (optional) | React.UIEventHandler<HTMLDivElement> | undefined | |
onWheel (optional) | React.WheelEventHandler<HTMLDivElement> | undefined | |
onWheelCapture (optional) | React.WheelEventHandler<HTMLDivElement> | undefined | |
onAnimationStart (optional) | React.AnimationEventHandler<HTMLDivElement> | undefined | |
onAnimationStartCapture (optional) | React.AnimationEventHandler<HTMLDivElement> | undefined | |
onAnimationEnd (optional) | React.AnimationEventHandler<HTMLDivElement> | undefined | |
onAnimationEndCapture (optional) | React.AnimationEventHandler<HTMLDivElement> | undefined | |
onAnimationIteration (optional) | React.AnimationEventHandler<HTMLDivElement> | undefined | |
onAnimationIterationCapture (optional) | React.AnimationEventHandler<HTMLDivElement> | undefined | |
onToggle (optional) | React.ToggleEventHandler<HTMLDivElement> | undefined | |
onBeforeToggle (optional) | React.ToggleEventHandler<HTMLDivElement> | undefined | |
onTransitionCancel (optional) | React.TransitionEventHandler<HTMLDivElement> | undefined | |
onTransitionCancelCapture (optional) | React.TransitionEventHandler<HTMLDivElement> | undefined | |
onTransitionEnd (optional) | React.TransitionEventHandler<HTMLDivElement> | undefined | |
onTransitionEndCapture (optional) | React.TransitionEventHandler<HTMLDivElement> | undefined | |
onTransitionRun (optional) | React.TransitionEventHandler<HTMLDivElement> | undefined | |
onTransitionRunCapture (optional) | React.TransitionEventHandler<HTMLDivElement> | undefined | |
onTransitionStart (optional) | React.TransitionEventHandler<HTMLDivElement> | undefined | |
onTransitionStartCapture (optional) | React.TransitionEventHandler<HTMLDivElement> | undefined |
Examples
import type { DiceRollerProps } from "@johnmorrisdotca/korokoro/react";
const value: DiceRollerProps = { notation: "2d6", sound: false };
console.log(value.notation);2d6What it prints (run when this page was built)