# Pagination Pagination divides large datasets into manageable pages, allowing users to navigate through information efficiently. It enhances performance, readability, and user experience in lists, tables, and search results. here. **Category:** Components **Storybook:** https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-pagination--introduction ## Variants documented in Storybook - Pagination Variants: https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-pagination--pagination-variants - Pagination Dots Variants: https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-pagination--pagination-dots-variants ## Framework setup ### HTML / CDN ```html ``` ### React ```bash npm install ux4g-web-components ``` ```jsx import 'ux4g-web-components/styles.css'; import 'ux4g-web-components/design-system'; ``` ### Angular Update `angular.json`: ```json { "styles": [ "node_modules/ux4g-web-components/styles/ux4g.css", "src/styles.css" ], "scripts": [ "node_modules/ux4g-web-components/dist/runtime/design-system.js" ] } ``` ## Code examples The snippets below are extracted from the Storybook canvas for Pagination. Each example shows the rendered HTML, the equivalent React JSX, and the Angular template markup. ### 1. Introduction — Introduction HTML: ```html
Pagination divides large datasets into manageable pages, allowing users to navigate through information efficiently. It enhances performance, readability, and user experience in lists, tables, and search results. here.
Utility classes for pagination layout and container styling.
|
Main Container
ux4g-pagination-wrapper
|
|
Page Numbers List
ux4g-pagination
|
|
Page Size Selector Group
ux4g-page-size
|
|
Select Control Wrapper
ux4g-page-size-select-wrapper
|
|
Standard Demo Wrapper
ux4g-border ux4g-border-neutral-emphasis ux4g-bg-primary-subtle ux4g-radius-l ux4g-mb-l ux4g-relative
|
|
Border
ux4g-border
|
|
Neutral Emphasis Border
ux4g-border-neutral-emphasis
|
|
Primary Subtle Background
ux4g-bg-primary-subtle
|
|
Large Radius
ux4g-radius-l
|
|
Large Margin Bottom
ux4g-mb-l
|
|
Relative Positioning
ux4g-relative
|
Pagination divides large datasets into manageable pages, allowing users to navigate through information efficiently. It enhances performance, readability, and user experience in lists, tables, and search results. here.
Utility classes for pagination layout and container styling.
|
Main Container
ux4g-pagination-wrapper
|
|
Page Numbers List
ux4g-pagination
|
|
Page Size Selector Group
ux4g-page-size
|
|
Select Control Wrapper
ux4g-page-size-select-wrapper
|
|
Standard Demo Wrapper
ux4g-border ux4g-border-neutral-emphasis ux4g-bg-primary-subtle ux4g-radius-l ux4g-mb-l ux4g-relative
|
|
Border
ux4g-border
|
|
Neutral Emphasis Border
ux4g-border-neutral-emphasis
|
|
Primary Subtle Background
ux4g-bg-primary-subtle
|
|
Large Radius
ux4g-radius-l
|
|
Large Margin Bottom
ux4g-mb-l
|
|
Relative Positioning
ux4g-relative
|
Pagination divides large datasets into manageable pages, allowing users to navigate through information efficiently. It enhances performance, readability, and user experience in lists, tables, and search results. here.
Utility classes for pagination layout and container styling.
|
Main Container
ux4g-pagination-wrapper
|
|
Page Numbers List
ux4g-pagination
|
|
Page Size Selector Group
ux4g-page-size
|
|
Select Control Wrapper
ux4g-page-size-select-wrapper
|
|
Standard Demo Wrapper
ux4g-border ux4g-border-neutral-emphasis ux4g-bg-primary-subtle ux4g-radius-l ux4g-mb-l ux4g-relative
|
|
Border
ux4g-border
|
|
Neutral Emphasis Border
ux4g-border-neutral-emphasis
|
|
Primary Subtle Background
ux4g-bg-primary-subtle
|
|
Large Radius
ux4g-radius-l
|
|
Large Margin Bottom
ux4g-mb-l
|
|
Relative Positioning
ux4g-relative
|