Skip to main content

Toaster

A notification component that shows up from the bottom, in various states. For full props documentation, see Sonner.

Examples

tsx

import {Toaster, Button, toast} from '@shopify/shop-minis-react'

export default function MyComponent() {
const handleClick = () => {
toast.success('Success toast!')
}

return (
<>
<Button onClick={handleClick}>
Show success Toast
</Button>
<Toaster />
</>
)
}

Preview

toaster

Was this page helpful?