UNPKG

dgz-ui-shared

Version:

Custom ui library using React.js, Shadcn/ui, TailwindCSS, Typescript, dgz-ui library

19 lines 782 B
import { HTMLAttributes, ReactNode } from 'react'; /** * Props for the Empty component. */ export interface EmptyProps extends HTMLAttributes<HTMLDivElement> { /** Optional custom icon. Defaults to a folder icon. */ icon?: ReactNode; } /** * Empty displays a simple empty state with an optional icon and message. * * @param children - Optional custom message/content. * @param icon - Optional custom icon. Defaults to a folder icon. * @param className - Additional CSS classes. * @param props - Additional HTML attributes for the container. * @returns {JSX.Element} A centered empty state component. */ export declare const Empty: ({ children, icon, className, ...props }: EmptyProps) => import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=Empty.d.ts.map