Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yuanchuan/svelte-pen

Create Svelte component demo quickly
https://github.com/yuanchuan/svelte-pen

codepen svelte webcomponents

Last synced: 21 days ago
JSON representation

Create Svelte component demo quickly

Awesome Lists containing this project

README

        

# svelte-pen

Create Svelte component demo quickly.

```html

{count}


let count = 0;

function handleClick() {
count += 1;
}

```

### Import another pen as Svelte component on CodePen.

See example: https://codepen.io/yuanchuan/pen/RwJPoNr

```html


import Percent from '/yuanchuan/pen/WNybLmE.svelte';

```

### Pass component attributes to Svelte.

```html


Hello {name}!


export let name

```

### Use different Svelte version.

The default version is `3.52.0` but you can specify a different version through `svelte:version` attribute.

```html

```