UNPKG

@inspirer-dev/hero-widget-cta-button

Version:

A custom field plugin for Strapi v5 that provides a CTA button selector with different action types (external link, internal link, case, article, copy link, copy nickname).

13 lines (10 loc) 377 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: 'cta-button', plugin: 'hero-widget-cta-button', // This must match the pluginId in admin registration type: 'json', }); }; export default register;