mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 20:35:07 +03:00
* add colour to admonition * clarify design docs * remove old references to alert * better docs * remove redundant className * consolidate colors * improve docs * restore alert * remove unrelated work
25 lines
847 B
TypeScript
25 lines
847 B
TypeScript
import { Button } from 'ui'
|
||
import { Admonition } from 'ui-patterns/admonition'
|
||
|
||
export default function AdmonitionDemo() {
|
||
return (
|
||
<div className="flex flex-col gap-4">
|
||
<Admonition
|
||
type="warning"
|
||
layout="horizontal"
|
||
title="Set up custom SMTP"
|
||
description="You’re using the built-in email service. This service has rate limits and is not meant to be
|
||
used for production apps."
|
||
actions={<Button type="default">Set up SMTP</Button>}
|
||
/>
|
||
<Admonition
|
||
type="destructive"
|
||
layout="horizontal"
|
||
title="Deleting this organization will also remove its projects"
|
||
description="Make sure you have made a backup of your projects if you want to keep your data."
|
||
actions={<Button type="danger">Delete organization</Button>}
|
||
/>
|
||
</div>
|
||
)
|
||
}
|