BPagination
Example
import React from 'react';
import BPagination from '@ui/BPagination';
const MyComponent: React.FC = () => {
const [data, setData] = useState<any[]>([
// list
]);
const pageSize = 5;
const [page, setPage] = useState<number>(1);
return (
<>
// BTable or sth else
<BPagination
disabled={false}
bigStep={false}
currentPage={page}
pageCount={Math.ceil(data.length / pageSize)}
handlePageChange={(e) => (page = e)}
/>
</>
);
};
export default MyComponent;BPagination props
Property
Description
Type
Default
Last updated