Skip to content

kwerdna19/react-three-yarnspinner-dialogue

Repository files navigation

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',
        }
      }
    }}
  />

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published