@1771technologies/lytenyte-pro
Version:
Blazingly fast headless React data grid with 100s of features.
26 lines (25 loc) • 1.14 kB
TypeScript
import { type JSX, type ReactNode } from "react";
import { type PillRootContext } from "./root.context.js";
import type { PillItemSpec, PillRowSpec } from "./types.js";
export declare const PillManager: import("react").NamedExoticComponent<Omit<PillManager.Props, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
export declare namespace PillManager {
type Props = Omit<JSX.IntrinsicElements["div"], "children"> & {
readonly rows: PillRowSpec[];
readonly orientation?: "horizontal" | "vertical";
readonly children?: (row: PillRowSpec, ctx: PillRootContext) => ReactNode;
readonly onPillRowChange?: (params: {
readonly changed: PillRowSpec[];
readonly full: PillRowSpec[];
}) => void;
readonly onPillItemActiveChange?: (params: {
readonly index: number;
readonly item: PillItemSpec;
readonly row: PillRowSpec;
}) => void;
readonly onPillItemThrown?: (params: {
readonly index: number;
readonly item: PillItemSpec;
readonly row: PillRowSpec;
}) => void;
};
}