@payfit/unity-components
Version:
31 lines (30 loc) • 1.35 kB
TypeScript
import { VariantProps } from '@payfit/unity-themes';
import { ButtonProps } from 'react-aria-components/Button';
declare const paginationEllipsis: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, string[], unknown, unknown, undefined>>;
export interface PaginationEllipsisProps extends VariantProps<typeof paginationEllipsis>, Omit<ButtonProps, 'value' | 'children' | 'className' | 'style' | 'slot'> {
/**
* The id of the ellipsis element
*/
id?: string;
/**
* Whether the ellipsis is disabled
*/
isDisabled?: boolean;
/**
* The range of pages represented by this ellipsis [start, end]
* When end is Infinity, it indicates an unknown page count
*/
value: [number, number];
}
/**
* The PaginationEllipsis component renders an ellipsis indicator for pagination.
* This component is used to indicate that there are more pages between the visible range.
* @example
* ```tsx
* import { PaginationEllipsis } from '@payfit/unity-components'
*
* <PaginationEllipsis value={[5, 10]} />
* ```
*/
declare const PaginationEllipsis: import('react').ForwardRefExoticComponent<PaginationEllipsisProps & import('react').RefAttributes<HTMLButtonElement>>;
export { PaginationEllipsis };