import * as React from 'react'; import { OverridableStringUnion } from '@material-ui/types'; import { OverridableComponent, OverrideProps } from '@material-ui/core/OverridableComponent'; import { UsePaginationItem } from '../usePagination/usePagination'; export interface PaginationItemPropsVariantOverrides {} export type PaginationItemVariantDefaults = Record<'text' | 'outlined', true>; export interface PaginationItemTypeMap
{
props: P & {
/**
* Override or extend the styles applied to the component.
*/
classes?: {
/** Styles applied to the root element. */
root?: string;
/** Styles applied to the root element if `type="page"`. */
page?: string;
/** Styles applied applied to the root element if `size="small"`. */
sizeSmall?: string;
/** Styles applied applied to the root element if `size="large"`. */
sizeLarge?: string;
/** Styles applied to the root element if `variant="text"`. */
text?: string;
/** Styles applied to the root element if `variant="text"` and `color="primary"`. */
textPrimary?: string;
/** Styles applied to the root element if `variant="text"` and `color="secondary"`. */
textSecondary?: string;
/** Styles applied to the root element if `variant="outlined"`. */
outlined?: string;
/** Styles applied to the root element if `variant="outlined"` and `color="primary"`. */
outlinedPrimary?: string;
/** Styles applied to the root element if `variant="outlined"` and `color="secondary"`. */
outlinedSecondary?: string;
/** Styles applied to the root element if `rounded="true"`. */
rounded?: string;
/** Styles applied to the root element if `type="start-ellipsis"` or `type="end-ellipsis"`. */
ellipsis?: string;
/** Pseudo-class applied to the root element if keyboard focused. */
focusVisible?: string;
/** Pseudo-class applied to the root element if `disabled={true}`. */
disabled?: string;
/** Pseudo-class applied to the root element if `selected={true}`. */
selected?: string;
/** Styles applied to the icon element. */
icon?: string;
};
/**
* The active color.
* @default 'standard'
*/
color?: 'standard' | 'primary' | 'secondary';
/**
* If `true`, the item will be disabled.
* @default false
*/
disabled?: boolean;
/**
* The current page number.
*/
page?: number;
/**
* If `true` the pagination item is selected.
* @default false
*/
selected?: boolean;
/**
* The shape of the pagination item.
* @default 'circular'
*/
shape?: 'circular' | 'rounded';
/**
* The size of the pagination item.
* @default 'medium'
*/
size?: 'small' | 'medium' | 'large';
/**
* The type of pagination item.
* @default 'page'
*/
type?: UsePaginationItem['type'];
/**
* The pagination item variant.
* @default 'text'
*/
variant?: OverridableStringUnion<
PaginationItemVariantDefaults,
PaginationItemPropsVariantOverrides
>;
};
defaultComponent: D;
}
/**
*
* Demos:
*
* - [Pagination](https://material-ui.com/components/pagination/)
*
* API:
*
* - [PaginationItem API](https://material-ui.com/api/pagination-item/)
*/
declare const PaginationItem: OverridableComponent