UNPKG

@cn-ui/core

Version:

The @cn-ui/core is a collection of UI components and utilities for building modern web applications with SolidJS.

25 lines (24 loc) 862 B
import { type Atom } from "@cn-ui/reactive"; import { type Cell, type CellContext } from "../solidTable"; import type { VirtualItem } from "../virtual"; export declare const MagicTableCellCtx: { use<D = { contain: Atom<HTMLElement | null>; }>(): D; id: symbol; Provider: import("solid-js").ContextProviderComponent<{ contain: Atom<HTMLElement | null>; } | undefined>; defaultValue: { contain: Atom<HTMLElement | null>; } | undefined; }; export interface BodyCellProps<T, D> { position?: "left" | "right"; absolute: boolean; cell: Cell<T, D>; item: VirtualItem; paddingLeft?: number; } export declare function BodyCell<T, D>(props: BodyCellProps<T, D>): import("solid-js").JSX.Element; export declare function defaultBodyCell<T>(ctx: CellContext<T, string>): import("solid-js").JSX.Element;