UNPKG

@brizy/ui

Version:
17 lines (16 loc) 539 B
import { ReactElement } from "react"; import { Props as CellProps } from "./Cell"; import { Color, Literal } from "../types"; export type IconSetData<T extends Literal> = { id: T; source: string | ReactElement; }; export interface Props<T extends Literal> extends Pick<CellProps<T>, "active" | "onChange"> { data: IconSetData<T>[]; height?: number; itemSize?: number; spacing?: number; background?: Color; onRemove?: (id: T) => void; } export declare const IconSet: (props: Props<Literal>) => ReactElement;