UNPKG

@eirikk/svelte-masonry-layout

Version:

Svelte wrapper for [masonry-layout](https://masonry.desandro.com/)

46 lines (45 loc) 1.57 kB
/// <reference types="masonry-layout" /> import { SvelteComponentTyped } from "svelte"; import type { Masonry } from './types'; declare const __propDef: { props: { masonryOptions: { itemSelector?: string | undefined; columnWidth?: any; percentPosition?: boolean | undefined; gutter?: any; stamp?: string | undefined; fitWidth?: boolean | undefined; originLeft?: boolean | undefined; originTop?: boolean | undefined; horizontalOrder?: boolean | undefined; hiddenStyle?: Masonry.HiddenOrVisibleStyleOption | undefined; visibleStyle?: Masonry.HiddenOrVisibleStyleOption | undefined; containerStyle?: {} | undefined; transitionDuration?: any; stagger?: string | number | undefined; resize?: boolean | undefined; initLayout?: boolean | undefined; }; }; events: { layoutComplete: CustomEvent<{ items: any[]; }>; initialized: CustomEvent<{ instance: Masonry; items: any[]; }>; } & { [evt: string]: CustomEvent<any>; }; slots: { default: {}; }; }; export type MasonryLayoutProps = typeof __propDef.props; export type MasonryLayoutEvents = typeof __propDef.events; export type MasonryLayoutSlots = typeof __propDef.slots; export default class MasonryLayout extends SvelteComponentTyped<MasonryLayoutProps, MasonryLayoutEvents, MasonryLayoutSlots> { } export {};