Skip to content

Feature Request: Single Toaster supporting multiple positions in calls #157

@AuroraTea

Description

@AuroraTea

Currently <Toaster /> has a fixed position property. Would like to specify position dynamically when calling toast, without multiple instances. So we can just import <Toaster /> in the highest component and use toasts in different positions.

<Toaster />

<script setup>
// Expect: different positions for different calls
toast('Message', { position: 'top-left' })
toast.success('Success', { position: 'bottom-right' })
</script>

Does the position parameter work currently? If not, is there a plan to support this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions