UNPKG

@inspirer-dev/hero-widget-selector

Version:

A custom field plugin for Strapi v5 that provides a widget selector with size filtering capabilities. Perfect for selecting hero widgets from a filtered collection based on size (S, M, L, XL).

34 lines (33 loc) 815 B
import React from 'react'; interface WidgetSelectorInputProps { attribute: { options?: { size?: string; }; }; name: string; onChange: (event: { target: { name: string; value: any; }; }) => void; value?: any; intlLabel: { id: string; defaultMessage: string; }; disabled?: boolean; error?: string; description?: { id: string; defaultMessage: string; }; labelAction?: React.ReactNode; required?: boolean; placeholder?: string; hint?: string; forwardedRef?: React.Ref<any>; } export declare const WidgetSelectorInput: React.ForwardRefExoticComponent<WidgetSelectorInputProps & React.RefAttributes<HTMLDivElement>>; export default WidgetSelectorInput;