diff --git a/src/DataTable/Pagination.tsx b/src/DataTable/Pagination.tsx
index 3e5ef11d..e6138e28 100644
--- a/src/DataTable/Pagination.tsx
+++ b/src/DataTable/Pagination.tsx
@@ -15,6 +15,8 @@ const defaultComponentOptions = {
noRowsPerPage: false,
selectAllRowsItem: false,
selectAllRowsItemText: 'All',
+ firstPage: true,
+ lastPage: true,
};
const PaginationWrapper = styled.nav`
@@ -150,17 +152,19 @@ function Pagination({
)}
{shouldShow && {range}}
-
+ {options.firstPage && (
+
+ )}
);
diff --git a/src/DataTable/types.ts b/src/DataTable/types.ts
index 6c24d6fc..ef993de5 100644
--- a/src/DataTable/types.ts
+++ b/src/DataTable/types.ts
@@ -222,6 +222,8 @@ export interface PaginationOptions {
rangeSeparatorText?: string;
selectAllRowsItem?: boolean;
selectAllRowsItemText?: string;
+ firstPage?: boolean;
+ lastPage?: boolean;
}
export interface PaginationServerOptions {