mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 15:19:08 +03:00
* fix toast examples * add sonner stuff * new sonner examples added * updated * add upload POC * add * Update sonner-upload.tsx * move statusicons * Minor fix. --------- Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
22 lines
439 B
TypeScript
22 lines
439 B
TypeScript
import { toast } from 'sonner'
|
|
import { Button } from 'ui'
|
|
|
|
export default function SonnerDemo() {
|
|
return (
|
|
<Button
|
|
type="default"
|
|
onClick={() =>
|
|
toast('Event has been created', {
|
|
description: 'Sunday, December 03, 2023 at 9:00 AM',
|
|
cancel: {
|
|
label: 'Undo',
|
|
onClick: () => console.log('Undo'),
|
|
},
|
|
})
|
|
}
|
|
>
|
|
Show Toast
|
|
</Button>
|
|
)
|
|
}
|