UNPKG

payload-lucide-picker

Version:

A custom field for Payload CMS that allows you to select and configure Lucide icons in your admin panel

31 lines (27 loc) 841 B
import React from 'react'; import { Field } from 'payload'; import { LucideProps } from 'lucide-react'; interface LucideIconPickerType { name: string; size?: number; color?: string; strokeWidth?: number; absoluteStrokeWidth?: boolean; } type LucideIconData = { name: string; size: number; color: string; strokeWidth: number; absoluteStrokeWidth: boolean; }; type LucideIconPickerOverrides = Partial<{ name: string; label: string; required: boolean; defaultValue: Partial<LucideIconData>; interfaceName: string; }>; declare const LucideIconPicker: (overrides?: LucideIconPickerOverrides) => Field; declare const getLucideIcon: (iconConfig: LucideIconPickerType) => (props: LucideProps) => React.JSX.Element; export { LucideIconPicker, type LucideIconPickerType, getLucideIcon };