0.1.1 • Published 4 years ago

@rakh/svelte-revealer v0.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

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>
0.1.1

4 years ago

0.1.0

4 years ago