Hi Puja
In the documentation (https://docs.mendix.com/howto/extensibility/pluggable-widgets/) you'll find several steps to create your own Mendix web widget. In the first how-to document (https://docs.mendix.com/howto/extensibility/create-a-pluggable-widget-one/) you'll find a step by step tutorial on how to create a custom text input widget, with the example of a string parameter that you pass to that custom react widget. The same can be done for any widget with an entity-list parameter.
More advanced settings can be found here: https://docs.mendix.com/howto/extensibility/create-a-pluggable-widget-two/, but I would not try to cut corners here, try to follow the documentation as it is structured.
I hope this helps.
Kind regards,
Leander