Skip to content

Commit

Permalink
[docs] Fix typo (mantinedev#3921)
Browse files Browse the repository at this point in the history
  • Loading branch information
praiseisaac authored Mar 28, 2023
1 parent b4e5c1e commit 6c2694f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/docs/core/Pagination.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ import { PaginationDemos } from '@mantine/demos';

## Controlled

To control component state provide `page` and `onChange` props:
To control component state provide `value` and `onChange` props:

```tsx
import { useState } from 'react';
import { Pagination } from '@mantine/core';

function Demo() {
const [activePage, setPage] = useState(1);
return <Pagination page={activePage} onChange={setPage} total={10} />;
return <Pagination value={activePage} onChange={setPage} total={10} />;
}
```

Expand Down

0 comments on commit 6c2694f

Please sign in to comment.