@cn-ui/core
Version:
The @cn-ui/core is a collection of UI components and utilities for building modern web applications with SolidJS.
19 lines (18 loc) • 808 B
TypeScript
import { type Accessor, type JSXElement } from "solid-js";
import "./index.css";
export declare const MODAL_LIST_POSITION: readonly ["top-left", "top-right", "bottom-left", "bottom-right", "top", "bottom"];
export type ModalListPosition = (typeof MODAL_LIST_POSITION)[number];
import "../animation/fade.css";
export interface ModalListProps<T> {
maxStackItem?: number;
each: T[];
by: (item: T, index: number) => string | number;
children: (item: T, index: Accessor<number>) => JSXElement;
stack?: boolean;
position?: ModalListPosition;
itemSize?: {
width: number;
height: number;
};
}
export declare const ModalList: <T>(props: import("@cn-ui/reactive").OriginComponentOutputType<ModalListProps<T>, HTMLDivElement, boolean>) => import("solid-js").JSX.Element;