The Pager component provides styled “Previous” and “Next” buttons (pager items) that can be used in conjunction with any other components that need the ability to page forward and backward.
By default, the pager items will appear centered in their container.
To align the pager items to the right and left, add the next
and previous
properties, respectively.
Use the disabled
property to make a pager item appear and act disabled.
Property | Type | Default | Description |
---|---|---|---|
children | Node | Collection of Pager.Item components in the Pager . | |
className | String | Custom classes to be added to the wrapping <ul> . |
Property | Parameters | Description |
---|---|---|
onSelect | eventKey , event | Called when a nested pager item is selected. |
Property | Type | Default | Description |
---|---|---|---|
buttonClassName | String | Custom classes to be added to the <button> , or <a> if you provided an href. | |
children | Node | The content. | |
className | String | Custom classes to be added to the <li> . | |
disabled | Boolean | false | Controls whether the item is enabled or disabled. |
eventKey | Node | eventKey passed to the pager’s onSelect callback. | |
href | String | Location to which the applicaton will navigate when item is selected. | |
next | Boolean | false | Controls whether the item pages forward. |
previous | Boolean | false | Controls whether the item pages backward. |
Property | Parameters | Description |
---|---|---|
onSelect | eventKey , event | Called when the pager item is selected. |