Our Tailwind CSS pagination can be used to show a user how to navigate between different pages of table or a group of elements.
Below we present you our Angular Pagination example crafted with Tailwind CSS that will help you build enterprise-level applications with ease. Customize the component or add it directly to your project!
You first need to import the DUIPaginator Module into your application module
Code
import { DUIPaginator } from "david-ui-angular"; @NgModule({ declarations: [AppComponent], imports: [BrowserModule, DUIPaginator], providers: [], bootstrap: [AppComponent], }) export class AppModule {}
Preview
Page 1 of 10
Code
<dui-paginator [length]="50"></dui-paginator>
Preview
Code
<dui-paginator variant="Standard" [length]="50"></dui-paginator>
Preview
Code
<dui-paginator variant="Circular" [length]="50"></dui-paginator>
Preview
Page 1 of 10
Code
<div class="flex flex-col w-95 items-center gap-2"> <dui-paginator variant="Standard" [showFirstLastOption]="false" [length]="50"></dui-paginator> <dui-paginator [showFirstLastOption]="false" [length]="50"></dui-paginator> </div>
The following properties are available for dui-pagination
Attribute | Type | Description | Default |
---|---|---|---|
variant | variant | change pagination variant | simple |
color | color | change pagination color | gray |
className | string | Add custom className for pagination | '' |
page | boolean | Current page | md |
pageSize | number | Shown length of data on single page pagination | false |
previousButtonLabel | string | Label for previous page button pagination | previous |
nextButtonLabel | string | Label for next page button pagination | next |
length | number | Length of data to be paged in pagination | 10 |
showFirstLastOption | boolean | Toggle first and last page button in pagination | true |
visibleRangeLength | number | Visible number of pages on UI | 5 |
pageSizes | number array | Change page size dynamically from list in pagination | [5,10,15,20,25] |