0.3.0-1 • Published 2 years ago

svench v0.3.0-1

Weekly downloads
445
License
ISC
Repository
-
Last release
2 years ago

Svench

A lightweight workbench to develop your Svelte components in isolation.

WORK IN PROGRESS

Running the example

git clone git@github.com:rixo/svench.git
cd svench/example
yarn
yarn svench

Usage

Add .svench files to the src directory to add pages to your style book.

Those are normal Svelte files, .svench is just a special extension to identify pages of the book. It makes it possible to collocate the Svench files beside the component they illustrate (which I like to do) with reduced mess in your actual sources.

The example is also configured with MDsveX, so you can add .svench.svx files too!

Inside a .svench file, you define some "views" that each represent a possible state of your component.

<script>
  import { View } from 'svench'

  import Foo from './Foo.svelte'

  // use the powers of Svelte to your advantage
  const defaults = { x: 1 }
</script>

<View name="default">
  <Foo {...defaults} />
</View>

<View name="other">
  <Foo {...defaults} other />
</View>
0.3.0-1

2 years ago

0.2.0-33-kit

2 years ago

0.2.0-32-kit

2 years ago

0.2.0-31

3 years ago

0.2.0-30

3 years ago

0.2.0-29

3 years ago

0.2.0-28

3 years ago

0.2.0-27

3 years ago

0.2.0-26

3 years ago

0.2.0-25

3 years ago

0.2.0-24

3 years ago

0.2.0-23

3 years ago

0.2.0-22

3 years ago

0.2.0-21

3 years ago

0.2.0-20

3 years ago

0.2.0-19

3 years ago

0.2.0-18

3 years ago

0.2.0-11

3 years ago

0.2.0-10

3 years ago

0.2.0-17

3 years ago

0.2.0-16

3 years ago

0.2.0-15

3 years ago

0.2.0-14

3 years ago

0.2.0-13

3 years ago

0.2.0-12

3 years ago

0.2.0-9

3 years ago

0.2.0-8

3 years ago

0.2.0-7

3 years ago

0.2.0-6

3 years ago

0.2.0-5

3 years ago

0.2.0-4

3 years ago

0.2.0-3

3 years ago

0.2.0-2

3 years ago

0.2.0-1

3 years ago

0.2.0-0

3 years ago

0.0.10-7

4 years ago

0.0.10-6

4 years ago

0.0.10-5

4 years ago

0.0.10-1

4 years ago

0.0.10-0

4 years ago

0.0.10-3

4 years ago

0.0.10-2

4 years ago

0.0.10-4

4 years ago

0.0.9

4 years ago

0.0.9-10

4 years ago

0.0.9-9

4 years ago

0.0.9-8

4 years ago

0.0.9-7

4 years ago

0.0.9-6

4 years ago

0.0.9-5

4 years ago

0.0.9-4

4 years ago

0.0.9-3

4 years ago

0.0.9-2

4 years ago

0.0.9-1

4 years ago

0.0.9-0

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.5

4 years ago

0.0.6

4 years ago

0.0.5-1

4 years ago

0.0.5-0

4 years ago

0.0.4

4 years ago

0.0.4-0

4 years ago

0.0.3

4 years ago

0.0.3-10

4 years ago

0.0.3-11

4 years ago

0.0.3-12

4 years ago

0.0.3-13

4 years ago

0.0.3-9

4 years ago

0.0.3-8

4 years ago

0.0.3-7

4 years ago

0.0.3-5

4 years ago

0.0.3-4

4 years ago

0.0.3-6

4 years ago

0.0.3-1

4 years ago

0.0.3-3

4 years ago

0.0.3-2

4 years ago

0.0.3-0

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

0.0.1-2

4 years ago

0.0.1-1

4 years ago

0.0.1-0

4 years ago