File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ export const Pagination = component$<PaginationProps>((props) => {
16
16
previous : previousButtonLabel = 'PREV' ,
17
17
next : nextButtonLabel = 'NEXT' ,
18
18
} = { } ,
19
- class : _class ,
20
19
defaultClass,
21
20
selectedClass,
22
21
dividerClass,
22
+ ...rest
23
23
} = props ;
24
24
25
25
const isPrevButtonVisible = ( ) => ! hidePrevButton && selectedPage > 1 ;
@@ -33,7 +33,7 @@ export const Pagination = component$<PaginationProps>((props) => {
33
33
) ;
34
34
35
35
return (
36
- < nav aria-label = "pagination" data-testid = "pagination" class = { _class } >
36
+ < nav aria-label = "pagination" data-testid = "pagination" { ... rest } >
37
37
{ isPrevButtonVisible ( ) && (
38
38
< button
39
39
aria-label = { 'prevAriaLabel' }
Original file line number Diff line number Diff line change 1
- import { PropFunction } from '@builder.io/qwik' ;
1
+ import { PropFunction , QwikIntrinsicElements } from '@builder.io/qwik' ;
2
2
3
3
export interface PaginationCoreProps {
4
4
selectedPage : number ;
@@ -7,7 +7,6 @@ export interface PaginationCoreProps {
7
7
}
8
8
9
9
export type PaginationStyling = {
10
- class ?: string ;
11
10
gap ?: string ;
12
11
defaultClass ?: string ;
13
12
selectedClass ?: string ;
@@ -28,4 +27,7 @@ type ArrowLabels = {
28
27
next : string ;
29
28
} ;
30
29
31
- export type PaginationProps = PaginationCoreProps & PaginationStyling & PaginationConfig ;
30
+ export type PaginationProps = PaginationCoreProps &
31
+ PaginationStyling &
32
+ PaginationConfig &
33
+ QwikIntrinsicElements [ 'nav' ] ;
You can’t perform that action at this time.
0 commit comments