Skip to content

Instantly share code, notes, and snippets.

@MuhammedKpln
Last active February 6, 2025 13:22
Show Gist options
  • Save MuhammedKpln/8d3c5a674f1574773da68116d2d99bdc to your computer and use it in GitHub Desktop.
Save MuhammedKpln/8d3c5a674f1574773da68116d2d99bdc to your computer and use it in GitHub Desktop.
{
"name": "my-awesome-plugin",
"version": "1.0.0",
"description": "An awesome plugin",
"author": "Your Name",
"main": "plugin.js",
"dependencies": []
}
import React from 'react';
const CustomComponent = () => (
<div className="bg-blue-100 p-4 rounded">
<h2>Custom Plugin Component</h2>
</div>
);
export default {
name: 'example-remote-plugin',
version: '1.0.0',
description: 'A plugin loaded from URL',
author: 'Your Name',
components: [
{
name: 'custom-component',
component: CustomComponent,
slot: 'watch-page-content',
priority: 10,
}
],
initialize: async () => {
console.log('Remote plugin initialized');
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment