mui / base-ui

Base UI is an open-source library of accessible, unstyled UI components for React.
https://mui.com/base-ui/
MIT License
280 stars 45 forks source link

[Pagination] Create the unstyled component #29

Open michaldudak opened 1 year ago

michaldudak commented 1 year ago

This is the place to gather ideas, measure interest and discuss the API and implementation details of the pagination component.

See https://github.com/mui/base-ui/issues/10 for the umbrella issue to track progress on Base UI and https://github.com/mui/material-ui/issues/6218 for the problem this project solves.

mbrookes commented 11 months ago

Create the unstyled component and hook

The hook already exists, so it's more of a migration:

https://github.com/mui/material-ui/blob/master/packages/mui-material/src/usePagination/usePagination.js

michaldudak commented 11 months ago

It doesn't follow the patterns from other Base UI hooks (https://github.com/mui/material-ui/blob/master/packages/mui-base/CONTRIBUTING.md), so it must be overhauled significantly.