GitXplorerGitXplorer
A

sveltescape

public
32 stars
3 forks
0 issues

Commits

List of commits on branch master.
Verified
9325b0b8094f889a164a088d1c206e0da12e15b0

Update README.md

AAlessioGr committed 2 years ago
Verified
016fb64020b0a50c355e7fe1f3f259f23f0cb5ff

Update README.md

AAlessioGr committed 2 years ago
Verified
c617f91ec2b61576675a67d0595b1e9d4053a3a2

Update README.md

AAlessioGr committed 2 years ago
Unverified
9eb60ed75a4a33300f79ea59bd55c701ad81e091

Improve fonts and update SvelteKit

AAlessioGr committed 2 years ago
Unverified
b610f9e345da03ef919905fed81e5878bda16888

Remove console logs and fix error page

AAlessioGr committed 2 years ago
Unverified
54397cb27a94cbf11d5af5193b6b00f8e589c42f

Better handling and type checking of enabled property

AAlessioGr committed 2 years ago

README

The README file for this repository.

SvelteScape is a Storybook alternative made for Svelte. Its goal is to also allow managing very complex components, as seen in the Shapes example.

Showcase

SvelteScape Screenshot

https://user-images.githubusercontent.com/70709113/212435844-f3848a97-0b75-4bb8-8684-59e039e26cc0.mp4

Unique features

  • Allows more complex data structures to be managed
  • Optional prop pre- and post-processors, to move load from the svelte component to SvelteScape. Very useful in the shapes example, so you do not have to ship an entire SVG curve generator with negative runtime performance benefits. Instead, this generates the svg paths via the postprocessor. Do more calculations in sveltescape and less in production! => Example => Result
  • Made 100% in svelte & sveltekit - for svelte / sveltekit
  • SvelteScape stories are defined in separate ts config files => nothing needs to be changed or added into your actual .svelte component files. They stay clean & separated!

How to use

Stories/components are currently intermingled with sveltescape in order to allow easier development & testing of sveltescape. Pretty much just follow those examples.

Developing

Once you've created a project and installed dependencies with pnpm install, start a development server:

pnpm run dev

# or start the server and open the app in a new browser tab
pnpm run dev -- --open

Building

To create a production version of your app:

pnpm run build