@unicity/design-system
Version:
A comprehensive React component library built on Material-UI with advanced theming capabilities including neumorphism design support
67 lines • 1.61 kB
TypeScript
import React from 'react';
import { PaginationProps as MuiPaginationProps } from '@mui/material';
export interface PaginationProps extends Omit<MuiPaginationProps, 'onChange' | 'variant'> {
/**
* Current page number (1-based)
*/
page: number;
/**
* Total number of pages
*/
count: number;
/**
* Callback fired when the page is changed
*/
onChange: (page: number) => void;
/**
* Visual variant
*/
variant?: 'default' | 'outlined' | 'text';
/**
* Whether to show page size selector
*/
showPageSize?: boolean;
/**
* Current page size
*/
pageSize?: number;
/**
* Available page size options
*/
pageSizeOptions?: number[];
/**
* Callback fired when page size is changed
*/
onPageSizeChange?: (pageSize: number) => void;
/**
* Whether to show total count information
*/
showTotal?: boolean;
/**
* Total number of items
*/
totalItems?: number;
/**
* Whether to show first/last page buttons
*/
showFirstLast?: boolean;
/**
* Custom labels for accessibility and internationalization
*/
labels?: {
firstPage?: string;
lastPage?: string;
previousPage?: string;
nextPage?: string;
pageSize?: string;
totalItems?: string;
showing?: string;
of?: string;
};
/**
* Compact layout for smaller screens
*/
compact?: boolean;
}
export declare const Pagination: React.FC<PaginationProps>;
//# sourceMappingURL=Pagination.d.ts.map