0.0.13 • Published 2 years ago

@peerpiper/awesome-peerpiper-components v0.0.13

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

Awesome PeerPiper Components

Need a start on hacking on the Deploy REPL?

Use these free, open source, and unencrypted components built for being imported into the PeerPiper ecosystem. Build and compile at home or in the Deploy REPL then use via the Gateway in your app.

Reference Implementation

Contact Card. ToDo List

Use

✨ See src/routes/index.svelte for example usage.

In Svelte:

<script>
	import { Peerpiper } from '@peerpiper/awesome-peerpiper-components';

	export let name = 'Douglas Anderson';
	export let address = '247 Main Street, USA';
</script>

<div>
	Demo <pre>awesome-peerpiper-components</pre>
</div>

<Peerpiper.ContactCard>
	<span slot="name">{name}</span>

	<span slot="address">
		{address}
	</span>
</Peerpiper.ContactCard>

In Vanilla JS, import from Github using jsdelivr then mount as per Svelte docs:

import ContactCard from 'https://cdn.jsdelivr.net/gh/PeerPiper/awesome-peerpiper-components@master/dist/@peerpiper/ContactCard.svelte.js';

const app = new ContactCard({
	target: document.getElementById('target-div') || document.body,
	props: {
		// assuming App.svelte contains something like
		// `export let answer`:
		name: 'Doug Anderson',
		address: '247 Main Street USA'
	}
});

<div id="target-div"></div>;

Pull Requests - Add your Awesome PeerPiper Component

Yes please. More to come. Instructions to follow.

0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.3

2 years ago