UNPKG

fluent-svelte-updated

Version:

Forked from https://github.com/vegardlarsen/fluent-svelte. A faithful implementation of Microsoft's Fluent Design System in Svelte.

56 lines (55 loc) 1.77 kB
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> { new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & { $$bindings?: Bindings; } & Exports; (internal: unknown, props: Props & { $$events?: Events; $$slots?: Slots; }): Exports & { $set?: any; $on?: any; }; z_$$bindings?: Bindings; } type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends { default: any; } ? Props extends Record<string, never> ? any : { children?: any; } : {}); /** * Expanders are controls that display a header and a collapsable content area. The content area can be expanded clicking on the header. [Docs](https://fluent-svelte.vercel.app/docs/components/expander) * - Usage: * ```tsx * <Expander> * Header * <svelte:fragment slot="content"> * Content * </svelte:fragment> * </Expander> * ``` */ declare const Expander: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{ [x: string]: any; expanded?: boolean; direction?: "down" | "up"; headingLevel?: 1 | 2 | 3 | 4 | 5 | 6; class?: string; containerElement?: HTMLDivElement; headerElement?: HTMLDivElement; contentElement?: HTMLDivElement; }, { icon: {}; default: {}; content: {}; }>, { expand: CustomEvent<any>; collapse: CustomEvent<any>; } & { [evt: string]: CustomEvent<any>; }, { icon: {}; default: {}; content: {}; }, {}, string>; type Expander = InstanceType<typeof Expander>; export default Expander;