Our team is currently working on a website project where we keep re-using components repeatedly. One particular instance involves a span that functions as a warning light. It's accompanied by some C# code with properties for color and text, Javascript, and custom CSS.
I've observed the Toolbox in Visual Studio which contains some basic components that can be dragged into my markup. Is this the ideal approach, or are there other options to address this 'issue'?
We aim to create reusable components in an assembly for easy reference in our projects, including separate CSS and Javascript files if possible.
Any suggestions on best practices, practical solutions, or tutorials would greatly benefit me, as I am fairly new to Asp.net MVC.
Please feel free to correct me if any part of this question is inaccurate. As mentioned before, I'm still learning about this field :)