UNPKG

@dvcol/neo-svelte

Version:

Neomorphic ui library for svelte 5

21 lines (20 loc) 683 B
import type { Component, Snippet } from 'svelte'; import type { NeoSuspenseProps } from './neo-suspense.model.js'; export type NeoLazyProps<Props extends Record<string, any> = any, Exports extends Record<string, any> = any, Bindings extends keyof Props | '' = string> = { /** * The component to lazy load. */ component: Promise<{ default: Component<Props, Exports, Bindings>; }>; /** * Optional props to pass to the component. */ props?: Props; /** * Children to render once the component is loaded. */ children?: Snippet; } & Omit<NeoSuspenseProps<{ default: Component<Props, Exports, Bindings>; }>, 'promise'>;