Skip to content
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

Can't override label by default on loadingState and emptyState in table component #1076

Closed
fasterv410 opened this issue Dec 7, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@fasterv410
Copy link

Environment

  • Operating System: Darwin
  • Node Version: v18.13.0
  • Nuxt Version: -
  • CLI Version: 3.10.0
  • Nitro Version: -
  • Package Manager: unknown
  • Builder: -
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Version

^2.11.0

Reproduction

https://stackblitz.com/edit/nuxt-ui-3f8gnm?file=app.vue

Description

Is my config nuxt ui:

// app.config.ts
table: {
  default: {
    loadingState: {
      label: 'Data is pending...'
    },
    emptyState: {
      label: 'Data not found!!'
    }
  }
}

### Additional context

#### On empty state:
![Screenshot 2566-12-07 at 12 14 46](https://github.com/nuxt/ui/assets/19948344/0dcc3353-4ee4-4e39-9cb2-ce626ed5f93d)

#### On loading state:
![Screenshot 2566-12-07 at 12 15 06](https://github.com/nuxt/ui/assets/19948344/8f30d70d-96a2-4559-b412-bdbba9bfd2f4)


### Logs

_No response_
@fasterv410 fasterv410 added the bug Something isn't working label Dec 7, 2023
Copy link
Member

Thanks for the report! There was indeed an issue with default objects that weren't supposed to be merged with tailwind-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants