This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

materialui-pagination-component

1.1.12 • Public • Published

materialui-pagination-component

A pagination component for Material-UI.

Installation:

yarn add materialui-pagination-component # Or, npm install materialui-pagination-component 

Usage:

import React, { useState } from "react";
import Pagination from "materialui-pagination-component";
 
function App() {
  const [page, setPage] = useState(1);
 
  const handleOnChange = pageValue => {
    setPage(pageValue);
  };
 
  return (
    <Pagination
      variant="text" // Valid options are ["text", "outlined"].
      selectVariant="select" // Valid options are ["button", "tab", "select"].
      navigationVariant="icon" // Valid options are ["icon", "text"].
      pageWindowVariant="standard" // Valid options are ["standard", "ellipsis"].
      color="primary" // Passed down to Material-UI components.
      indicatorColor="primary" // Passed down to Material-UI Tabs.
      hideNavigation={false} // Hides the first, last, previous, & next page navigation buttons.
      hideFirst={false} // Hides the first page navigation button.
      hideLast={false} // Hides the last page navigation button.
      hidePrevious={false} // Hides the previous page navigation button.
      hideNext={false} // Hides the next page navigation button.
      disableFirst={false} // Disables the first page navigation button.
      disableLast={false} // Disables the last page navigation button.
      disablePrevious={false} // Disables the previous page navigation button.
      disableNext={false} // Disables the next page navigation button.
      page={page} // The current page.
      totalPages={10} // The total number of pages.
      elevation={null} // Passed down to Material-UI Paper component.
      onChange={handleOnChange} // Callback when the page changes.
    />
  );
}

Examples:

Screenshot

Package Sidebar

Install

npm i materialui-pagination-component

Weekly Downloads

90

Version

1.1.12

License

MIT

Unpacked Size

234 kB

Total Files

20

Last publish

Collaborators

  • iryanbell