Getting StartedInstallation and setup guides 5
LayoutWorkflow and structural layout components 7
OverlayModal and floating layer surfaces 3
FeedbackStatus, empty, progress, and loading placeholder patterns 5
FormInput and selection components 17
UtilityGeneral-purpose interface utilities 7
NavigationMenu surfaces and hierarchical actions 7

Paginator API

Import TngPaginatorComponent from @tailng-ui/components for the styled pagination surface.

Inputs

NameTypeDescription
totalItemsnumberTotal result count used for range text and client-mode boundaries.
pageIndex, pageSizenumber | undefinedControlled page state. Use defaults when the paginator should own state.
defaultPageIndex, defaultPageSizenumberInitial uncontrolled state.
mode'client' | 'server'Server mode keeps next-page movement available for paged API responses.
pageSizeOptionsreadonly number[]Options rendered in the rows-per-page select.
showFirstLast, showPageSize, showRangebooleanTrim the paginator surface for compact layouts.

Outputs

  • pageIndexChange emits the next page index.
  • pageSizeChange emits only when the selected page size changes.
  • pageChange includes previous values and the trigger that caused the change.