cschroeter / park-ui

Beautifully designed components built with Ark UI and Panda CSS that work with a variety of JS frameworks.
https://park-ui.com
MIT License
1.75k stars 75 forks source link

Pagination: page props is not passed to ArkPagination.Root #361

Closed pierrebiver closed 4 months ago

pierrebiver commented 4 months ago

When using the Pagination component, it seems like there is a bug in how the props are splited which make the page props not passed to the root component. It seems to come from the function splitCssProps that does not return the page in the localProps

const [variantProps, paginationProps] = pagination.splitVariantProps(props)
  const [cssProps, localProps] = splitCssProps(paginationProps) // local props does not contains page.
cschroeter commented 4 months ago

@pierrebiver

This should be fixed by now https://park-ui.com/react/docs/components/pagination