react-three-yarnspinner-dialogue
TypeScript icon, indicating that this package has built-in type declarations

0.3.18 • Public • Published

React Three Fiber YarnSpinner Dialogue Box

A text scrolling dialog box for story-game-style dialog or narration.

Installation

 npm i react-three-yarnspinner-dialogue
 # or
 yarn add react-three-yarnspinner-dialogue

Usage

<YarnDialogue/>

  • TBD: add props

Example

  <YarnDialogue
    yarn={exampleYarn}
    width="70%"
    height={150}
    transform={[0.5, 0]}
    padding={10}
    bottom={40}
    skippable
    getCharacterLabelAttributes={({character}) => {
      if(character === 'Companion') {
        return {
          labelColor: 'red',
        }
      }
    }}
  />

Package Sidebar

Install

npm i react-three-yarnspinner-dialogue

Weekly Downloads

6

Version

0.3.18

License

MIT License

Unpacked Size

534 kB

Total Files

17

Last publish

Collaborators

  • akucz