@brizy/ui
Version:
React elements in Brizy style
16 lines (15 loc) • 473 B
TypeScript
import { ReactElement } from "react";
import { IconSetData } from "./index";
import { Literal } from "../types";
export interface Props<T extends Literal> {
item: IconSetData<T>;
onChange: (s: T) => void;
active?: T;
dimensions: Dimensions;
onRemove?: (id: T) => void;
}
export interface Dimensions {
width: number;
height: number;
}
export declare const Cell: ({ item, onChange, active, dimensions, onRemove }: Props<Literal>) => ReactElement;