Empty Table

Empty table placeholder with a dashed border, a No data yet title, helper text and an optional button to create the first row. For React tables.

src/registry/ui/empty-table.tsx/r/empty-table.json

Installation#

bash
npx shadcn@latest add @minidev/empty-table

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/empty-table.json

Usage#

tsx
import { EmptyTable } from "@/components/ui/empty-table"

export function Example() {
  return (
    <EmptyTable className="max-w-md" actionLabel="Create row" />
  )
}

API reference#

EmptyTable props
PropTypeDefault
titlestring"No data yet"
descriptionstring"Create your first row to get started."
actionLabelstring-
onAction() => void-
classNamestring-

Dependencies#

npm

React only

Built from

Examples#

All data table components

Learn more