Create a Reusable Empty State Component #158
Labels
Frontend
Frontend Related Issue
UX/UI Change
Highlights changes affecting user experience or interface design
Milestone
Develop a global reusable component for empty states that can be used across multiple pages, starting with the Contacts Page for the MVP. This component will display a central message, an optional icon/logo, and an optional button. It will serve as a placeholder for "No Data" scenarios.
Tasks
Component Development
EmptyState
component with the following props:message
(required): A string to display as the central message.icon
(optional): A React component or MUI Icon to display above the message.buttonText
(optional): Text to display on an optional button.buttonAction
(optional): A function or URL for the button action.children
(optional): Custom JSX elements for more complex empty states (e.g., multiple buttons or additional text).Component Behavior
EmptyState
component should:message
in a visually prominent way.icon
or logo above the message if provided.buttonText
andbuttonAction
are provided.children
passed to it below the message, replacing the button if present.Styling
Implementation Guidelines
Boolean
or checking data length). For example:Testing
children
are passed.Deliverables
EmptyState
component integrated into the Contacts Page.Notes
message
are required, whileicon
,buttonText
,buttonAction
, andchildren
are optional.The text was updated successfully, but these errors were encountered: