// ** MUI Imports import { styled } from '@mui/material/styles' import Typography from '@mui/material/Typography' import Grid, { GridProps } from '@mui/material/Grid' // ** Custom Components Imports import CardSnippet from 'src/@core/components/card-snippet' // ** Demo Components Imports import PaginationSizes from 'src/views/components/pagination/PaginationSizes' import PaginationSimple from 'src/views/components/pagination/PaginationSimple' import PaginationRanges from 'src/views/components/pagination/PaginationRanges' import PaginationRounded from 'src/views/components/pagination/PaginationRounded' import PaginationButtons from 'src/views/components/pagination/PaginationButtons' import PaginationOutlined from 'src/views/components/pagination/PaginationOutlined' import PaginationDisabled from 'src/views/components/pagination/PaginationDisabled' import PaginationControlled from 'src/views/components/pagination/PaginationControlled' // ** Source code imports import * as source from 'src/views/components/pagination/PaginationSourceCode' // Styled component for Grid container const GridContainer = styled(Grid)(({ theme }) => ({ '& .demo-space-y > *': { marginBottom: theme.spacing(5.2), '&:last-of-type': { marginBottom: 0 } } })) const Pagination = () => { return ( Use the following props with Pagination component: count prop for number of page items and color prop for different colored pagination. Use variant='outlined' prop for outlined pagination. Use disabled prop with Pagination component to disable the whole pagination. Use shape='rounded' prop for rounded pagination. Use size={`{'small' | 'large'}`} prop for different sizes of pagination. Use showFirstButton & showLastButton props to show first-page and last-page buttons and hidePrevButton & hideNextButton props to hide previous-page and next-page buttons. Manage page and onChange props with the help of a state. You can specify how many digits to display either side of current page with the siblingRange{' '} prop, and adjacent to the start and end page number with the boundaryRange prop. ) } export default Pagination