1.0.10 • Published 1 year ago

svelte-dialogue-tree v1.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

svelte-dialogue-tree

A Svelte library to create and interact with a branching dialogue.

Docs 📚 | Demos 💬

Features

  • 🎄 Flexible tree schema
  • 🌵 Conditional branching
  • 🎨 Styleable Dialogue component
  • 🔶 Components as dialogue elements
  • 💙 Typesafety option with generics
  • 🧙 Characters
  • 🎭 Narration

Installation

npm install svelte-dialogue-tree
pnpm add svelte-dialogue-tree
yarn add svelte-dialogue-tree
bun install svelte-dialogue-tree

Usage

If you want to use the default styles, import style.css in your layout file.

import 'svelte-dialogue-tree/style.css';
import { Dialogue } from 'svelte-dialogue-tree';

Pass a tree prop to Dialogue component. Check the schema for tree here

<Dialogue {tree} />

License

MIT

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago