UNPKG

@1771technologies/lytenyte-pro

Version:

Blazingly fast headless React data grid with 100s of features.

14 lines (13 loc) 573 B
import { type JSX } from "react"; import { type SlotComponent } from "../../hooks/use-slot/index.js"; import type { BaseOption } from "./type.js"; export type ChipProps<T extends BaseOption> = JSX.IntrinsicElements["div"] & { readonly option: T; readonly render?: SlotComponent<{ option: T; active: boolean; remove: () => void; }>; }; export declare const useChip: () => () => void; export declare const Chip: import("react").ForwardRefExoticComponent<Omit<ChipProps<BaseOption>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;