Type of data being loaded
OptionalchildrenOptional children elements
OptionalclassOptional CSS class name for custom styling
Allows consumers to apply custom styles via CSS classes. Use Tailwind CSS classes or custom CSS classes.
Data to display in widget
OptionalerrorError encountered while loading
If true, widget is loading data
OptionalonOptional callback when widget encounters an error
Error that occurred
OptionaltestOptional test ID for automated testing
Used by testing frameworks (Cypress, Vitest) to locate and interact with the component. Should follow the pattern defined in testIds constants.
Widget props with loading state
Generic interface for widgets that load and display data asynchronously.
Example