0.1.1 • Published 4 years ago
@rakh/svelte-revealer v0.1.1
Svelte-revealer
Used for revealing an area with a triangle to show when the area is opened or closed.
Installation
npm install ../svelete-revealer
Note that we need to install Svelte as well as the plugin, as it's a 'peer dependency'.
Usage
<script>
import Revealer from '@rakh/svelte-revealer';
</script>
<div >
<Revealer>
<span slot="header">Text to be displayed</span>
I will be shown.
The header needs to be included.
</Revealer>
</div>