Files
supabase/apps/design-system/registry/default/example/copy-empty-states.tsx
kemal.earth bfe3ea06df feat(design-system): add initial copy writing guide (#41307)
* feat: create entry points for copy writing docs

* feat: basic page generated using the supabase writing style guide

* chore: editing page

* feat: more components

* feat: remaining example components

* chore: remove duplicate registry entry

* chore: add aria label to example

* chore: run prettier

* fix: alphabetise getting started section

* chore: rename copy writing to copywriting
2025-12-15 10:44:08 +00:00

35 lines
1.0 KiB
TypeScript

'use client'
import { Button } from 'ui'
import { EmptyStatePresentational } from 'ui-patterns'
import { Key } from 'lucide-react'
export default function CopyEmptyStates() {
return (
<div className="flex flex-col gap-8">
<div className="flex flex-col gap-4">
<span className="text-xs text-foreground-muted">Bad Example</span>
<div className="flex flex-col gap-4">
<EmptyStatePresentational
icon={Key}
title="There are no API keys available"
description=""
/>
</div>
</div>
<div className="flex flex-col gap-4">
<span className="text-xs text-foreground-muted">Good Example</span>
<div className="flex flex-col gap-4">
<EmptyStatePresentational
icon={Key}
title="No API keys"
description="Generate a key to connect your application."
>
<Button type="primary">Generate key</Button>
</EmptyStatePresentational>
</div>
</div>
</div>
)
}