Hi Anil,
please have a look at the documentation and learning path:
https://docs.mendix.com/howto/extensibility/create-a-pluggable-widget-one/
https://academy.mendix.com/link/paths/142/Build-a-Pluggable-Widget