kliping.pro
  • Docs
  • Explore
  • Builder
  • Directory
  • Colors
  • Typeset
Saved
Docs
  • Sections13
  • Installation5
  • Dark Mode4
  • Forms3
  • Registry6
  • Utilities2
  • More10
  • Components137
  • Accordion
  • Action Bar
  • AI Chat
  • AI Thread List
  • Alert
  • Alert Dialog
  • Angle Slider
  • Animated Grid Pattern
  • Aspect Ratio
  • Attachment
  • Avatar
  • Avatar Group
  • Badge
  • Badge Overflow
  • Banner
  • Border Beam
  • Breadcrumb
  • Bubble
  • Button
  • Button Group
  • Calendar
  • Card
  • Carousel
  • Chart
  • Checkbox
  • Checkbox Group
  • Chip
  • Circular Progress
  • Client Only
  • Collapsible
  • Color Picker
  • Color Swatch
  • Combobox
  • Combobox Advanced
  • Command
  • Compare Slider
  • Composition
  • Context Menu
  • Cropper
  • Data Grid
  • Data Table
  • Data Table Advanced
  • Date Picker
  • Dialog
  • Direction Provider
  • Dot Pattern
  • Drawer
  • Dropdown Menu
  • Editable
  • Empty
  • Field
  • File Upload
  • Form
  • FPS
  • Gauge
  • Hitbox
  • Hover Card
  • Input
  • Input Group
  • Input OTP
  • Item
  • Kanban
  • Kbd
  • Kbd Advanced
  • Key Value
  • Label
  • List
  • Listbox
  • Logos
  • Map
  • Marker
  • Marquee
  • Mask Input
  • Masonry
  • Media Player
  • Mention
  • Menubar
  • Message
  • Message Scroller
  • Native Select
  • Navigation Menu
  • Number Field
  • Pagination
  • Particles
  • Pending
  • Phone Input
  • Pin Input
  • Popover
  • Portal
  • Presence
  • Progress
  • QR Code
  • Questionnaire
  • Radio Group
  • Range Calendar
  • Rating
  • Relative Time Card
  • Resizable
  • Responsive Dialog
  • Scroll Area
  • Scroll Spy
  • Scroller
  • Segmented Input
  • Select
  • Selection Toolbar
  • Separator
  • Sheet
  • Sidebar
  • Skeleton
  • Slider
  • Software Purchase Card
  • Sonner
  • Sortable
  • Speed Dial
  • Spinner
  • Stack
  • Stat
  • Status
  • Stepper
  • Stepper Advanced
  • Swap
  • Switch
  • Table
  • Tabs
  • Tags Input
  • Tags Input Advanced
  • Textarea
  • Time Picker
  • Timeline
  • Toast
  • Toggle
  • Toggle Group
  • Tooltip
  • Tour
  • Typography
  • Visually Hidden
  • Visually Hidden Input
  1. Docs
  2. Components
  3. Empty

Empty

PreviousNext

Menampilkan keadaan saat belum ada data yang bisa ditampilkan.

No Projects Yet

You haven't created any projects yet. Get started by creating your first project.

Learn More

Installation ​

pnpm dlx kliping@latest add empty

Salin dan tempel kode sumber di GitHub ke project Anda.

Sesuaikan path import dengan struktur project Anda.

Usage ​

vue
<script setup lang="ts">
import { FolderOpen } from '@lucide/vue'
import { Button } from '@/registry/default/ui/button'
import {
  Empty,
  EmptyContent,
  EmptyDescription,
  EmptyHeader,
  EmptyMedia,
  EmptyTitle,
} from '@/registry/default/ui/empty'
</script>

<template>
  <Empty>
    <EmptyHeader>
      <EmptyMedia variant="icon">
        <FolderOpen />
      </EmptyMedia>
    </EmptyHeader>
    <EmptyTitle>No data</EmptyTitle>
    <EmptyDescription>No data found</EmptyDescription>
    <EmptyContent>
      <Button>Add data</Button>
    </EmptyContent>
  </Empty>
</template>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

Examples ​

Outline ​

Pakai utility class border untuk membuat empty state bergaris tepi.

Cloud Storage Empty

Upload files to your cloud storage to access them anywhere.

Latar ​

Pakai utility bg-* dan bg-gradient-* untuk memberi latar pada empty state.

No Notifications

You're all caught up. New notifications will appear here.

Avatar ​

Pakai komponen EmptyMedia untuk menampilkan avatar di dalam empty state.

User avatarZN
User Offline

This user is currently offline. You can leave a message to notify them or try again later.

Grup Avatar ​

Pakai komponen EmptyMedia untuk menampilkan sekelompok avatar di dalam empty state.

@ace-of-acesAA@sadeghbaratiSB@zernoniaZN
No Team Members

Invite your team to collaborate on this project.

InputGroup ​

Anda bisa menyisipkan komponen InputGroup ke dalam EmptyContent.

404 - Not Found

The page you're looking for doesn't exist. Try searching for what you need below.

/

Need help? Contact support

Requirements ​

Semua dipasang otomatis oleh kliping add; tabel ini untuk Anda yang memasang manual atau memeriksa project.

RequirementValue
ProjectVue 3.5+, Tailwind CSS v4, alias @ — disiapkan kliping init
npm packagesclass-variance-authority@^0.7.1
Filescomponents/ui/empty/empty.vue
components/ui/empty/empty-content.vue
components/ui/empty/empty-description.vue
components/ui/empty/empty-header.vue
components/ui/empty/empty-media.vue
components/ui/empty/empty-title.vue
components/ui/empty/index.ts

Anatomy ​

Susunan bagiannya seperti dipakai di contoh-contoh di atas. Impor semua bagian dari satu tempat, lalu susun begini:

vue
<Empty>
  <EmptyHeader>
    <EmptyMedia />
    <EmptyTitle />
    <EmptyDescription />
  </EmptyHeader>
  <EmptyContent>
    <EmptyDescription />
  </EmptyContent>
</Empty>

API Reference ​

Empty ​

Komponen utama empty state. Membungkus komponen EmptyHeader dan EmptyContent.

SlotProps
#default—
Data attributeValue
[data-slot]"empty"
vue
<template>
  <Empty>
    <EmptyHeader />
    <EmptyContent />
  </Empty>
</template>

EmptyHeader ​

Komponen EmptyHeader membungkus media, judul, dan keterangan empty state.

SlotProps
#default—
Data attributeValue
[data-slot]"empty-header"
vue
<template>
  <EmptyHeader>
    <EmptyMedia />
    <EmptyTitle />
    <EmptyDescription />
  </EmptyHeader>
</template>

EmptyMedia ​

Pakai komponen EmptyMedia untuk menampilkan media empty state, misalnya ikon atau gambar. Komponen lain seperti avatar juga bisa diletakkan di sini.

PropTypeDefaultDescription
variant?"default" | "icon"—The visual style.
SlotProps
#default—
Data attributeValue
[data-slot]"empty-icon"
[data-variant]"default" | "icon"
vue
<template>
  <EmptyMedia variant="icon">
    <Icon />
  </EmptyMedia>
</template>
vue
<template>
  <EmptyMedia>
    <Avatar>
      <AvatarImage src="..." />
      <AvatarFallback>CN</AvatarFallback>
    </Avatar>
  </EmptyMedia>
</template>

EmptyTitle ​

Pakai komponen EmptyTitle untuk menampilkan judul empty state.

SlotProps
#default—
Data attributeValue
[data-slot]"empty-title"
vue
<template>
  <EmptyTitle>No data</EmptyTitle>
</template>

EmptyDescription ​

Pakai komponen EmptyDescription untuk menampilkan keterangan empty state.

SlotProps
#default—
Data attributeValue
[data-slot]"empty-description"
vue
<template>
  <EmptyDescription>You do not have any notifications.</EmptyDescription>
</template>

EmptyContent ​

Pakai komponen EmptyContent untuk menampilkan isi empty state, misalnya tombol, input, atau tautan.

SlotProps
#default—
Data attributeValue
[data-slot]"empty-content"
vue
<template>
  <EmptyContent>
    <Button>Add Project</Button>
  </EmptyContent>
</template>

CSS Variables ​

Token tema yang dibaca komponen ini — ubah nilainya di CSS global (:root dan .dark, lihat Theming) untuk mengubah tampilannya tanpa menyentuh komponennya: --foreground, --muted, --muted-foreground, --primary, --radius.

Credits ​

Berasal dari shadcn-vue (MIT, Copyright (c) 2023 unovue). Rantai lengkapnya di Credits.

PreviousEditableNext Field

On This Page

InstallationUsageExamplesOutlineLatarAvatarGrup AvatarInputGroupRequirementsAnatomyAPI ReferenceEmptyEmptyHeaderEmptyMediaEmptyTitleEmptyDescriptionEmptyContentCSS VariablesCredits

© 2026 Kliping. Free components are open source under the MIT License.

LicenseCreditsRoadmap