UNPKG

fluent-svelte-updated

Version:

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

60 lines (59 loc) 2.02 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; } : {}); /** * Flyouts represent a control that displays lightweight UI that is either information, or requires user interaction. Unlike a dialog, a Flyout can be dismissed by clicking or tapping outside of it, or pressing the Esc key. [Docs](https://fluent-svelte.vercel.app/docs/components/flyout) * - Usage: * ```tsx * <Flyout> * <Button>Trigger Button</Button> * <svelte:fragment slot="flyout"> * Flyout Contents * </svelte:fragment> * </Flyout> * ``` */ declare const FlyoutWrapper: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{ [x: string]: any; open?: boolean; closable?: boolean; placement?: "top" | "bottom" | "left" | "right"; alignment?: "start" | "center" | "end"; offset?: number; trapFocus?: boolean; class?: string; wrapperElement?: HTMLDivElement; anchorElement?: HTMLDivElement; menuElement?: HTMLDivElement; backdropElement?: HTMLDivElement; }, { default: {}; override: {}; flyout: {}; }>, { open: CustomEvent<any>; close: CustomEvent<any>; } & { [evt: string]: CustomEvent<any>; }, { default: {}; override: {}; flyout: {}; }, {}, string>; type FlyoutWrapper = InstanceType<typeof FlyoutWrapper>; export default FlyoutWrapper;