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).

13 lines (10 loc) 382 B
import type { Core } from '@strapi/strapi'; const register = ({ strapi }: { strapi: Core.Strapi }) => { // Register custom field on server side - must match admin pluginId strapi.customFields.register({ name: 'widget-selector', plugin: 'hero-widget-selector', // This must match the pluginId in admin registration type: 'string', }); }; export default register;