Svelte Action - use:movable
This package has been moved to the @svelte-put monorepo. You can still use this package as is but a reinstallation is recommended.
npm install -D @svelte-put/movable
yarn add -D @svelte-put/movable
pnpm add -D @svelte-put/movable
Table of Contents
Show / hide
Installation
npm install -D svelte-movable
yarn add -D svelte-movable
pnpm add -D svelte-movable
Usage
See example for typical usage here.
Documentation
Typescript support
app.d.ts: show / hide
declare namespace svelte.JSX {
interface HTMLAttributes<T> {
onmovablestart?: (event: CustomEvent<import('svelte-movable').MovableEventDetails>) => void;
onmovableend?: (event: CustomEvent<import('svelte-movable').MovableEventDetails>) => void;
}
}
For detailed documentation, see the extracted API.
Quick access to the parameter interface accepted by the action: MovableParameters.
Note: MovableParameters
has properties that are all optional. By default you don't need to provide any parameter to the action.
Contributing
Read Contribution Guide
Todos