Skip to content

Unable to change position of Toast #4104

@JimJiraffe

Description

@JimJiraffe

Description

I'm using UI Pro ** and the Dashboard Template ** and I just want the position of the toast to be top-center.

I've tried updating my app.config.ts as well as updating appConfig in code.

My app.config.ts is:

export default defineAppConfig({
  toaster: {
    position: 'top-center',
  },
  ui: {
    colors: {
      primary: 'green',
      neutral: 'zinc'
    }
  }
})

My code is:

const appConfig = useAppConfig()
appConfig.toaster.position = "top-center"

const toast = useToast();

I tried reversing the order of useToast() and useAppConfig() to no avail.

I'm sorry this is so basic, but I'm pulling my (remaining) hair out!

Thanks!!
Jim

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedv3#1289

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions