Dynamic Dashboard with Configurable Tabs and Widgets
At Razorpay, our internal dashboards are critical for monitoring various financial metrics and operational data. This problem challenges you to build a simplified, yet robust, dynamic dashboard where users can switch between different 'views' using tabs. Each tab will then dynamically render a curated set of 'widgets' based on a provided configuration. This approach ensures flexibility and a tailored user experience for accessing complex data.
Your primary goal is to implement a React application that displays a dynamic dashboard based on a given configuration object. Specifically, you need to:
type property defined in the configuration. You will handle two types of widgets: TextWidget and ChartWidget.title clearly visible. Arrange them in a responsive grid or vertical stack.TextWidget correctly renders its title and content.ChartWidget correctly renders its title and a placeholder indicating its chartType and data (no actual charting library integration is required).Constraints
App.tsx.ChartWidget, you only need to render a visual placeholder for the chart, not an actual interactive chart.Loading editor...