dgz-ui
Version:
Custom ui library using React.js, Shadcn/ui, TailwindCSS, Typescript
55 lines • 2.26 kB
TypeScript
import * as React from 'react';
import { type ButtonProps } from '../button';
/**
* Pagination - Navigation component for paginated content.
*/
declare const Pagination: {
({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
displayName: string;
};
/**
* PaginationContent - Wrapper list for pagination items.
*/
declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
/**
* PaginationItem - List item wrapper.
*/
declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
/**
* Props for PaginationLink.
* @property {boolean} [isActive] - Marks the current page.
* @property {'lg'|'default'|'sm'|'xs'|'icon'} [size] - Button size forwarded to Button variants.
*/
type PaginationLinkProps = {
isActive?: boolean;
} & Pick<ButtonProps, 'size'> & React.ComponentProps<'a'>;
/**
* PaginationLink - A styled anchor used as a pagination control.
*/
declare const PaginationLink: {
({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
displayName: string;
};
/**
* PaginationPrevious - Button to navigate to previous page.
*/
declare const PaginationPrevious: {
({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
displayName: string;
};
/**
* PaginationNext - Button to navigate to next page.
*/
declare const PaginationNext: {
({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
displayName: string;
};
/**
* PaginationEllipsis - Non-interactive indicator for collapsed pages.
*/
declare const PaginationEllipsis: {
({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
displayName: string;
};
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
//# sourceMappingURL=pagination.d.ts.map