UNPKG

@omicrxn/mercury

Version:

Mercury is a Svelte animation library powered by Motion. It simplifies complex animations with Svelte actions, provides layout and exit animations, and integrates seamlessly with Svelte features.

11 lines (10 loc) 617 B
import { type LayoutScopeOptions } from './layout-coordinator.js'; export type LayoutProps = Record<string, string>; export type { LayoutScopeOptions as LayoutOptions } from './layout-coordinator.js'; export type { LayoutStates } from './layout-anime.js'; type LayoutAttachment = (element: HTMLElement) => (() => void) | void; export declare function layoutProps(id?: string): LayoutProps; declare function createLayout(trigger: () => unknown, optionsOrGetter?: LayoutScopeOptions | (() => LayoutScopeOptions)): LayoutAttachment; export declare const layout: typeof createLayout & { props: typeof layoutProps; };