logoAnt Design

⌘ K
  • 디자인
  • 개발
  • 컴포넌트
  • 블로그
  • 자료
5.21.3
  • Components Overview
  • General
    • Button
    • FloatButton
      5.0.0
    • Icon
    • Typography
  • Layout
    • Divider
    • Flex
      5.10.0
    • Grid
    • Layout
    • Space
    • Splitter
      5.21.0
  • Navigation
    • Anchor
    • Breadcrumb
    • Dropdown
    • Menu
    • Pagination
    • Steps
  • Data Entry
    • AutoComplete
    • Cascader
    • Checkbox
    • ColorPicker
      5.5.0
    • DatePicker
    • Form
    • Input
    • InputNumber
    • Mentions
    • Radio
    • Rate
    • Select
    • Slider
    • Switch
    • TimePicker
    • Transfer
    • TreeSelect
    • Upload
  • Data Display
    • Avatar
    • Badge
    • Calendar
    • Card
    • Carousel
    • Collapse
    • Descriptions
    • Empty
    • Image
    • List
    • Popover
    • QRCode
      5.1.0
    • Segmented
    • Statistic
    • Table
    • Tabs
    • Tag
    • Timeline
    • Tooltip
    • Tour
      5.0.0
    • Tree
  • Feedback
    • Alert
    • Drawer
    • Message
    • Modal
    • Notification
    • Popconfirm
    • Progress
    • Result
    • Skeleton
    • Spin
    • Watermark
      5.1.0
  • Other
    • Affix
    • App
      5.1.0
    • ConfigProvider
    • Util
      5.13.0

Pagination

A long list can be divided into several pages, and only one page will be loaded at a time.
가져오기import{ Pagination }from"antd";
소스components/pagination
문서
이 페이지 수정변경 로그

Resources

Ant Design Charts
Ant Design Pro
Ant Design Pro Components
Ant Design Mobile
Ant Design Mini
Ant Design Landing-Landing Templates
Scaffolds-Scaffold Market
Umi-React Application Framework
dumi-Component doc generator
qiankun-Micro-Frontends Framework
ahooks-React Hooks Library
Ant Motion-Motion Solution
China Mirror 🇨🇳

Community

Awesome Ant Design
Medium
Twitter
yuque logoAnt Design in YuQue
Ant Design in Zhihu
Experience Cloud Blog
seeconf logoSEE Conf-Experience Tech Conference
Work with Us

Help

GitHub
Change Log
FAQ
Bug Report
Issues
Discussions
StackOverflow
SegmentFault

Ant XTech logoMore Products

yuque logoYuQue-Document Collaboration Platform
AntV logoAntV-Data Visualization
Egg logoEgg-Enterprise Node.js Framework
Kitchen logoKitchen-Sketch Toolkit
Galacean logoGalacean-Interactive Graphics Solution
xtech logoAnt Financial Experience Tech
Theme Editor
Made with ❤ by
Ant Group and Ant Design Community
loading

When To Use

  • When it will take a long time to load/render all items.
  • If you want to browse the data by navigating through pages.

Examples

API

Common props ref:Common props

<Pagination onChange={onChange} total={50} />
PropertyDescriptionTypeDefaultVersion
alignAlignstart | center | end-5.19.0
currentCurrent page numbernumber-
defaultCurrentDefault initial page numbernumber1
defaultPageSizeDefault number of data items per pagenumber10
disabledDisable paginationboolean-
hideOnSinglePageWhether to hide pager on single pagebooleanfalse
itemRenderTo customize item's innerHTML(page, type: 'page' | 'prev' | 'next', originalElement) => React.ReactNode-
pageSizeNumber of data items per pagenumber-
pageSizeOptionsSpecify the sizeChanger optionsstring[] | number[][10, 20, 50, 100]
responsiveIf size is not specified, Pagination would resize according to the width of the windowboolean-
showLessItemsShow less page itemsbooleanfalse
showQuickJumperDetermine whether you can jump to pages directlyboolean | { goButton: ReactNode }false
showSizeChangerDetermine whether to show pageSize select, it will be true when total > 50boolean | SelectProps-SelectProps: 5.21.0
showTitleShow page item's titlebooleantrue
showTotalTo display the total number and rangefunction(total, range)-
simpleWhether to use simple modeboolean | { readOnly?: boolean }-
sizeSpecify the size of Pagination, can be set to smalldefault | smalldefault
totalTotal number of data itemsnumber0
onChangeCalled when the page number or pageSize is changed, and it takes the resulting page number and pageSize as its argumentsfunction(page, pageSize)-
onShowSizeChangeCalled when pageSize is changedfunction(current, size)-

Design Token

컴포넌트 토큰어떻게 사용하나요?

토큰 이름설명타입기본값
itemActiveBg页码激活态背景色string#ffffff
itemActiveBgDisabled页码激活态禁用状态背景色stringrgba(0, 0, 0, 0.15)
itemActiveColorDisabled页码激活态禁用状态文字颜色stringrgba(0, 0, 0, 0.25)
itemBg页码选项背景色string#ffffff
itemInputBg输入框背景色string#ffffff
itemLinkBg页码链接背景色string#ffffff
itemSize页码尺寸number32
itemSizeSM小号页码尺寸number24
miniOptionsSizeChangerTop每页展示数量选择器 topnumber0

글로벌 토큰어떻게 사용하나요?

Basic
codepen icon
External Link Icon
expand codeexpand code
Align
codepen icon
External Link Icon
expand codeexpand code
5.19.0
More
codepen icon
External Link Icon
expand codeexpand code
Changer
codepen icon
External Link Icon
expand codeexpand code
Jumper
codepen icon
External Link Icon
expand codeexpand code
Mini size
codepen icon
External Link Icon
expand codeexpand code
Simple mode
codepen icon
External Link Icon
expand codeexpand code
Controlled
codepen icon
External Link Icon
expand codeexpand code
Total number
codepen icon
External Link Icon
expand codeexpand code
Show All
codepen icon
External Link Icon
expand codeexpand code
Prev and next
codepen icon
External Link Icon
expand codeexpand code
Wireframe
codepen icon
External Link Icon
expand codeexpand code
component Token
codepen icon
External Link Icon
expand codeexpand code
  • 1
  • 2
  • 3
  • 4
  • 5
  • 1
  • 2
  • 3
  • 4
  • 5

  • 1
  • 2
  • 3
  • 4
  • 5

  • 1
  • 2
  • 3
  • 4
  • 5
  • 1
  • •••
  • 4
  • 5
  • 6
  • 7
  • 8
  • •••
  • 50
  • 10 / 페이지
  • 1
  • 2
  • 3
  • 4
  • 5
  • •••
  • 50
  • 10 / 페이지

  • 1
  • 2
  • 3
  • 4
  • 5
  • •••
  • 50
  • 10 / 페이지
  • 1
  • 2
  • 3
  • 4
  • 5
  • •••
  • 50
  • 10 / 페이지
    이동하기페이지

  • 1
  • 2
  • 3
  • 4
  • 5
  • •••
  • 50
  • 10 / 페이지
    이동하기페이지
  • 1
  • 2
  • 3
  • 4
  • 5
  • 1
  • 2
  • 3
  • 4
  • 5
  • 10 / 페이지
    이동하기페이지
  • Total 50 items
  • 1
  • 2
  • 3
  • 4
  • 5
  • Total 50 items
  • 1
  • 2
  • 3
  • 4
  • 5
  • 10 / 페이지
    이동하기페이지
  • /5

  • 2/5

  • /5
  • 1
  • 2
  • 3
  • 4
  • 5
  • Total 85 items
  • 1
  • 2
  • 3
  • 4
  • 5
  • 20 / 페이지

  • 1-20 of 85 items
  • 1
  • 2
  • 3
  • 4
  • 5
  • 20 / 페이지
  • Total 85 items
  • 1
  • 2
  • 3
  • 4
  • 5
  • •••
  • 9
  • 10 / 페이지
    이동하기페이지
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • •••
  • 50
  • Next
  • 10 / 페이지
  • 1
  • 2
  • 3
  • 4
  • 5
  • •••
  • 50
  • 10 / 페이지

  • 1
  • 2
  • 3
  • 4
  • 5
  • •••
  • 50
  • 10 / 페이지

  • 1
  • •••
  • 46
  • 47
  • 48
  • 49
  • 50
  • 10 / 페이지

  • 1
  • •••
  • 46
  • 47
  • 48
  • 49
  • 50
  • 10 / 페이지
  • Total 500 items
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • •••
  • 50
  • Next
  • 10 / 페이지
    이동하기페이지

  • 1
  • 2
  • 3
  • 4
  • 5
  • •••
  • 50
  • 10 / 페이지