Search code examples
javascriptreactjsantdant-design-pro

AntD pagination


How to change the amount of pagination in Ant Design? Need a maximum of 3 numbers before the dots, and by default 5 enter image description here


Solution

  • Add showLessItems property for antd pagination component.

    <Pagination total={500} pageSize={10} showLessItems />