File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -182,7 +182,6 @@ describe("Pagination", () => {
182182 expect ( pages ( ) [ 0 ] ) . toBe ( 1 ) ;
183183 } ) ;
184184
185-
186185 it ( "should change previous and next text when provided" , ( ) => {
187186 render (
188187 < Pagination
Original file line number Diff line number Diff line change @@ -66,6 +66,13 @@ export interface TablePaginationProps extends BasePaginationProps {
6666
6767export type PaginationProps = DefaultPaginationProps | TablePaginationProps ;
6868
69+ /**
70+ * Top-level Pagination component. Switches between Default and Table variants
71+ * based on the `layout` prop.
72+ * @param props - Discriminated union of DefaultPaginationProps and TablePaginationProps.
73+ * @param ref - Ref forwarded to the underlying nav element.
74+ * @returns The rendered pagination navigation.
75+ */
6976export const Pagination = forwardRef < HTMLElement , PaginationProps > ( ( props , ref ) => {
7077 if ( props . layout === "table" ) return < TablePagination { ...props } ref = { ref } /> ;
7178 return < DefaultPagination { ...props } ref = { ref } /> ;
You can’t perform that action at this time.
0 commit comments