Skip to content

Commit e0a0c6b

Browse files
feat: add className and other props passing to PaginationBarContainer.
1 parent 2323926 commit e0a0c6b

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

packages/ui/src/components/primitives/pagination.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,12 @@ function PageIndex({ page, totalPage, ...props }: PageIndexProps) {
176176
)
177177
}
178178

179-
function PaginationBarContainer(props: React.PropsWithChildren) {
179+
function PaginationBarContainer({ children, ...props }: React.ComponentPropsWithRef<'div'>) {
180180
return (
181-
<div className="p-6 flex justify-between bg-background border-t border-border">
182-
{props.children}
183-
</div>
181+
<div
182+
className={cn('p-6 flex justify-between bg-background border-t border-border', children)}
183+
{...props}
184+
/>
184185
)
185186
}
186187

0 commit comments

Comments
 (0)