0.3.0-1 • Published 3 years ago

svench v0.3.0-1

Weekly downloads
445
License
ISC
Repository
-
Last release
3 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

3 years ago

0.2.0-33-kit

3 years ago

0.2.0-32-kit

3 years ago

0.2.0-31

4 years ago

0.2.0-30

4 years ago

0.2.0-29

4 years ago

0.2.0-28

4 years ago

0.2.0-27

4 years ago

0.2.0-26

4 years ago

0.2.0-25

4 years ago

0.2.0-24

4 years ago

0.2.0-23

4 years ago

0.2.0-22

4 years ago

0.2.0-21

4 years ago

0.2.0-20

4 years ago

0.2.0-19

4 years ago

0.2.0-18

4 years ago

0.2.0-11

4 years ago

0.2.0-10

4 years ago

0.2.0-17

4 years ago

0.2.0-16

4 years ago

0.2.0-15

4 years ago

0.2.0-14

4 years ago

0.2.0-13

4 years ago

0.2.0-12

4 years ago

0.2.0-9

4 years ago

0.2.0-8

4 years ago

0.2.0-7

4 years ago

0.2.0-6

4 years ago

0.2.0-5

4 years ago

0.2.0-4

4 years ago

0.2.0-3

4 years ago

0.2.0-2

4 years ago

0.2.0-1

4 years ago

0.2.0-0

4 years ago

0.0.10-7

5 years ago

0.0.10-6

5 years ago

0.0.10-5

5 years ago

0.0.10-1

5 years ago

0.0.10-0

5 years ago

0.0.10-3

5 years ago

0.0.10-2

5 years ago

0.0.10-4

5 years ago

0.0.9

5 years ago

0.0.9-10

5 years ago

0.0.9-9

5 years ago

0.0.9-8

5 years ago

0.0.9-7

5 years ago

0.0.9-6

5 years ago

0.0.9-5

5 years ago

0.0.9-4

5 years ago

0.0.9-3

5 years ago

0.0.9-2

5 years ago

0.0.9-1

5 years ago

0.0.9-0

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.5

5 years ago

0.0.6

5 years ago

0.0.5-1

5 years ago

0.0.5-0

5 years ago

0.0.4

5 years ago

0.0.4-0

5 years ago

0.0.3

5 years ago

0.0.3-10

5 years ago

0.0.3-11

5 years ago

0.0.3-12

5 years ago

0.0.3-13

5 years ago

0.0.3-9

5 years ago

0.0.3-8

5 years ago

0.0.3-7

5 years ago

0.0.3-5

5 years ago

0.0.3-4

5 years ago

0.0.3-6

5 years ago

0.0.3-1

5 years ago

0.0.3-3

5 years ago

0.0.3-2

5 years ago

0.0.3-0

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.1-2

5 years ago

0.0.1-1

5 years ago

0.0.1-0

5 years ago