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

[Feature request] Toast hide progress in app.config #3270

Open
vitalijalbu opened this issue Feb 8, 2025 · 3 comments
Open

[Feature request] Toast hide progress in app.config #3270

vitalijalbu opened this issue Feb 8, 2025 · 3 comments
Labels
enhancement New feature or request triage v3 #1289

Comments

@vitalijalbu
Copy link

Description

Hi guys would be nice if there's a config value that sets progress: false, cause someone doesn't like it...
it can be disabled on ui with display none, but a more correct approach would be in app config.
Thanks.

Additional context

Image
@vitalijalbu vitalijalbu added enhancement New feature or request triage v3 #1289 labels Feb 8, 2025
Copy link
Member

Why not use ui config in your app.config.ts to achieve that? https://ui3.nuxt.dev/components/toast#theme

You can use the hidden class for example:

export default defineAppConfig({
  ui: {
    toast: {
      slots: {
        progress: 'hidden'
      }
    }
  }
})

@vitalijalbu
Copy link
Author

Why not use ui config in your app.config.ts to achieve that? https://ui3.nuxt.dev/components/toast#theme

You can use the hidden class for example:

export default defineAppConfig({
ui: {
toast: {
slots: {
progress: 'hidden'
}
}
}
})

Yes that works, but I think it will be better have it a conditional props

@vitalijalbu
Copy link
Author

@benjamincanac pls could you help me out fixing or adding some workaround for this? I’m using vue + nuxt ui (is it recommended to use with native vue btw?)
Thanks 🙏
#3235

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage v3 #1289
Projects
None yet
Development

No branches or pull requests

2 participants