UNPKG

narraleaf-react

Version:

A React visual novel player framework

13 lines (12 loc) 502 B
import React from "react"; export interface ItemProps { className?: string; style?: React.CSSProperties; /** * The keyboard binding for this item, see [Key_Values](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values) for more information * * When this key is pressed, the item will be selected and the action will be executed */ bindKey?: string; } export default function Item({ className, style, bindKey }: ItemProps): React.JSX.Element;