diff --git a/packages/Pager/README.md b/packages/Pager/README.md index a8c9b4b2..986b10a1 100644 --- a/packages/Pager/README.md +++ b/packages/Pager/README.md @@ -26,11 +26,26 @@ It also requires the Provider package from Igloo to receive the correct locale. This should be wrapped around the entire application. ```jsx -import IglooProvider from '@igloo-ui/provider'; import Pager from '@igloo-ui/pager'; const [currentPage, setCurrentPage] = React.useState(1); + setCurrentPage(page)} + /> +``` + + +## Internationalization + +The Pager component uses the [`@igloo-ui/provider`](https://igloo.officevibe.design/component/Provider) package to receive the correct locale. This should be wrapped around the entire application. + +```jsx +import IglooProvider from '@igloo-ui/provider'; + setCurrentPage(page)} /> -; + ```