UNPKG

strapi-plugin-icons-field

Version:

A customizable plugin for Strapi to integrate an icons field into your content types.

38 lines (37 loc) 840 B
import React from 'react'; type Output = 'name' | 'svg'; interface IconSelectProps { label: string; placeholder: string; unique: boolean; type: 'text'; initialValue: null; attribute: { type: 'text'; options: { output: Output; selection: string[]; }; }; customField: 'plugin::icons-field.icon'; disabled?: boolean; error?: string; intlLabel: { id: string; defaultMessage: string; }; labelAction?: React.ReactNode; name: string; onChange: (event: { target: { name: string; value: string; type: string; }; }) => void; required?: boolean; value?: string; hint?: string; } declare const IconSelect: React.FC<IconSelectProps>; export default IconSelect;