empty
Tasks empty state
Tasks empty state
Загрузка превью…
src/empty/c-empty-12.vue
<!--
Расхождение с апстримом: `IconPlaceholder` заменена инлайновым `<svg>`
(lucide-react v0.545.0 "circle-check"/"plus") — см. docs/PORTING.md §5.
-->
<script setup lang="ts">
import { Button } from "@/components/ui/button"
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"
import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "@/components/ui/empty"
</script>
<template>
<div class="flex items-center justify-center p-4">
<Card class="w-full max-w-md">
<CardHeader>
<CardTitle>Tasks</CardTitle>
<CardDescription>Track and manage your to-dos.</CardDescription>
</CardHeader>
<CardContent>
<Empty>
<EmptyHeader>
<EmptyMedia variant="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="lucide lucide-circle-check"
>
<circle cx="12" cy="12" r="10" />
<path d="m9 12 2 2 4-4" />
</svg>
</EmptyMedia>
<EmptyTitle>All clear</EmptyTitle>
<EmptyDescription>
You have no pending tasks. Enjoy the downtime or create a new one.
</EmptyDescription>
</EmptyHeader>
<EmptyContent>
<Button size="sm" variant="outline">
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="lucide lucide-plus"
data-icon="inline-start"
>
<path d="M5 12h14" />
<path d="M12 5v14" />
</svg>
New Task
</Button>
</EmptyContent>
</Empty>
</CardContent>
</Card>
</div>
</template>