-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(table): add slot for empty state #260
feat(table): add slot for empty state #260
Conversation
@Haythamasalama is attempting to deploy a commit to the Nuxt Labs Team on Vercel. A member of the Team first needs to authorize it. |
✅ Live Preview ready!
|
✅ Live Preview ready!
|
What would be the benefit of using the state when you can customize the |
Ok, I know you can customize that label and icon, but in some cases of UI, you need to add a svg image with buttons! or when fetching data from the API when there is no data, I'd like to add a quick action button. which I did for a variety of projects. For examples: Here is an example form table in vuetifyjs. I think the table component should be as flexible as possible to cover all scenarios in the UI, which is used a lot in every system. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be better to name slots like props? :empty-state="..."
-> #empty-state
@benjamincanac done |
This feature allows for customizable content, including custom text, images, or components, to create a meaningful and visually appealing message when the table is empty.