UNPKG

@arolariu/components

Version:

🎨 70+ beautiful, accessible React components built on Base UI. TypeScript-first, CSS Modules styling, tree-shakeable, SSR-ready. Perfect for modern web apps, design systems & rapid prototyping. Zero config, maximum flexibility! ⚡

132 lines • 4.38 kB
import * as React from "react"; /** Supported visual treatments for {@link EmptyMedia}. */ export type EmptyMediaVariant = "default" | "icon"; /** * Props for the {@link Empty} component. */ export type EmptyProps = React.ComponentPropsWithoutRef<"div">; /** * Props for the {@link EmptyHeader} component. */ export type EmptyHeaderProps = React.ComponentPropsWithoutRef<"div">; /** * Props for the {@link EmptyMedia} component. */ export interface EmptyMediaProps extends React.ComponentPropsWithoutRef<"div"> { /** Visual presentation applied to the media container. @default "default" */ variant?: EmptyMediaVariant; } /** * Props for the {@link EmptyTitle} component. */ export type EmptyTitleProps = React.ComponentPropsWithoutRef<"div">; /** * Props for the {@link EmptyDescription} component. */ export type EmptyDescriptionProps = React.ComponentPropsWithoutRef<"p">; /** * Props for the {@link EmptyContent} component. */ export type EmptyContentProps = React.ComponentPropsWithoutRef<"div">; /** * Creates a structured empty-state container. * * @remarks * - Pure CSS component (no Base UI primitive) * - Renders a `<div>` element * - Styling via CSS Modules with `--ac-*` custom properties * * @example * ```tsx * <Empty> * <EmptyHeader /> * </Empty> * ``` * * @see {@link EmptyProps} for available props */ declare const Empty: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>; /** * Groups the leading header content for an empty state. * * @remarks * - Pure CSS component (no Base UI primitive) * - Renders a `<div>` element * - Styling via CSS Modules with `--ac-*` custom properties * * @example * ```tsx * <EmptyHeader>Nothing here yet</EmptyHeader> * ``` * * @see {@link EmptyHeaderProps} for available props */ declare const EmptyHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>; /** * Hosts media or icon content for an empty state. * * @remarks * - Pure CSS component (no Base UI primitive) * - Renders a `<div>` element * - Styling via CSS Modules with `--ac-*` custom properties * * @example * ```tsx * <EmptyMedia variant='icon'>📭</EmptyMedia> * ``` * * @see {@link EmptyMediaProps} for available props */ declare const EmptyMedia: React.ForwardRefExoticComponent<EmptyMediaProps & React.RefAttributes<HTMLDivElement>>; /** * Renders the primary title for an empty state. * * @remarks * - Pure CSS component (no Base UI primitive) * - Renders a `<div>` element * - Styling via CSS Modules with `--ac-*` custom properties * * @example * ```tsx * <EmptyTitle>No results found</EmptyTitle> * ``` * * @see {@link EmptyTitleProps} for available props */ declare const EmptyTitle: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>; /** * Renders supporting copy for an empty state. * * @remarks * - Pure CSS component (no Base UI primitive) * - Renders a `<p>` element * - Styling via CSS Modules with `--ac-*` custom properties * * @example * ```tsx * <EmptyDescription>Try adjusting your filters.</EmptyDescription> * ``` * * @see {@link EmptyDescriptionProps} for available props */ declare const EmptyDescription: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>; /** * Hosts trailing actions or supplemental content for an empty state. * * @remarks * - Pure CSS component (no Base UI primitive) * - Renders a `<div>` element * - Styling via CSS Modules with `--ac-*` custom properties * * @example * ```tsx * <EmptyContent> * <button type='button'>Create item</button> * </EmptyContent> * ``` * * @see {@link EmptyContentProps} for available props */ declare const EmptyContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>; export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle }; //# sourceMappingURL=empty.d.ts.map