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>
38 lines
977 B
TypeScript
38 lines
977 B
TypeScript
import { useConfig } from '@/hooks/use-config'
|
|
import { Switch } from 'ui'
|
|
import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout'
|
|
|
|
function SonnerExpandConfig() {
|
|
const [config, setConfig] = useConfig()
|
|
|
|
return (
|
|
<div className="px-5 py-5 border rounded-lg my-2 bg-surface-75">
|
|
<form>
|
|
<FormItemLayout
|
|
name="sonnerExpand"
|
|
id="sonnerExpand"
|
|
isReactForm={false}
|
|
label="Use expand prop"
|
|
description="You will need to fire a few Sonner toasts first"
|
|
layout="flex"
|
|
>
|
|
<Switch
|
|
name="sonnerExpand"
|
|
id="sonnerExpand"
|
|
size="large"
|
|
checked={config.sonnerExpand}
|
|
onCheckedChange={(e) =>
|
|
setConfig({
|
|
...config,
|
|
sonnerExpand: e,
|
|
})
|
|
}
|
|
/>
|
|
</FormItemLayout>
|
|
</form>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export { SonnerExpandConfig }
|