UNPKG

@sorens/artist-svelte

Version:

an opinionated and clean UI framework for SvelteKit with theme support built-in

27 lines (26 loc) 802 B
import type { useAction } from '../../types/global'; import type { Subscriber, Writable } from 'svelte/store'; interface accordionStates { [key: string]: boolean; } interface accordionContext { accordionStates: Writable<accordionStates>; add: (newItemState: { id: string; expanded?: boolean; }) => void; remove: (newItemState: { id: string; expanded?: boolean; }) => void; toggle: (newItemState: { id: string; expanded?: boolean; }) => void; } export declare const scrollIntoView: useAction; export declare const accordionContextInit: () => accordionContext; export declare const accordionItemLifeCycle: (id: string, expanded: boolean, storeSubscribe: Subscriber<{ [key: string]: boolean; }>) => useAction; export {};