@arshiash80/strapi-plugin-iconhub
Version:
Icon picker plugin for Strapi with Iconify integration — search, select, and store icons with raw SVG for high-performance rendering.
39 lines (38 loc) • 995 B
TypeScript
/// <reference types="react" />
type IconInputValue = {
iconName: string | null;
iconData: string | null;
width: number | null;
height: number | null;
color: string | null | undefined;
isSvgEditable?: boolean;
isIconNameEditable?: boolean;
};
type IconInputProps = {
attribute: {
type: string;
customField: string;
options: Record<string, unknown>;
};
description: unknown;
placeholder: unknown;
hint: string;
name: string;
intlLabel: unknown;
onChange: (event: {
target: {
name: string;
value: unknown;
type: string;
};
}) => void;
contentTypeUID: string;
type: string;
value: IconInputValue;
required: boolean;
error: unknown;
disabled: boolean;
label: string;
};
declare const IconInput: import("react").ForwardRefExoticComponent<IconInputProps & import("react").RefAttributes<HTMLButtonElement>>;
export default IconInput;