UNPKG

@dvcol/neo-svelte

Version:

Neomorphic ui library for svelte 5

39 lines (38 loc) 1.17 kB
import type { Snippet } from 'svelte'; import type { HTMLTransitionProps } from '../utils/action.utils.js'; import type { HTMLNeoBaseElement } from '../utils/html-element.utils.js'; export type NeoTransitionContainerProps<Tag extends keyof HTMLElementTagNameMap = 'div'> = { /** * Snippet to display as the container content. */ children?: Snippet; /** * The HTML tag to use for the container. * @default 'div' */ tag?: Tag | keyof HTMLElementTagNameMap; /** * Optional key(s) to key the transitions. */ key?: unknown | unknown[]; /** * Overflow style (overflow-x). */ overflow?: CSSStyleDeclaration['overflow']; /** * Horizontal overflow style (overflow-x). */ overflowX?: CSSStyleDeclaration['overflowX']; /** * Vertical overflow style (overflow-x). */ overflowY?: CSSStyleDeclaration['overflowY']; /** * Width of the container. */ width?: CSSStyleDeclaration['width']; /** * Height of the container. */ height?: CSSStyleDeclaration['height']; } & HTMLTransitionProps & HTMLNeoBaseElement<HTMLElementTagNameMap[Tag]>;