If you have a website with lots of pages, you may wish to add some sort of pagination to each page:
Use component <base-paginator></base-paginator>. And put the required pages with the component <base-p-page></base-p-page> inside. Add [active]="true" in <base-p-page> if you want to make that page active. Check example below.
Add an input <[arrows]="true"> to get arrows instead words for navigation. Check example below
To get specially designed from our team complex paginator use <[basePaginator]="true"> into the component. Check example below.
Go to page
1 of 125
Run the following command to add this component to your project:
npx base-ui-cli add paginator
For AI agents
Copy a prompt with the registry name, CLI install, and import — or add the Base UI MCP server.
npx -y base-ui-mcp
Base UI provides standalone components. Import the exact elements you want to use into your component.
// Install: npx base-ui-cli add paginator
// Paths are relative to aliases.components (default: src/app/components)
import { PPageComponent } from './paginator/p-page/p-page.component';
import { PaginatorComponent } from './paginator/paginator.component';
@Component({
selector: 'app-your-component',
imports: [
PPageComponent,
PaginatorComponent
],
template: `...`
})
export class YourComponent {} API for paginator — generated from JSDoc in the library source.
| API | Member | Type | Default | Description |
|---|---|---|---|---|
base-p-page | active | boolean | false | Indicates if this page is currently the active/selected page. |
base-paginator | basePaginator | boolean | false | If true, applies a distinct "base" visual variant. |
base-paginator | arrows | boolean | false | If true, shows explicit previous/next arrow buttons instead of standard pagination. |
base-paginator | itemsPerPage | string | number | null | null | The currently selected number of items per page. |
base-paginator | pageSizeOptions | number[] | [10, 25, 50, 100] | The available options for "items per page" dropdown. Defaults to [10, 25, 50, 100]. |
Content