✨(react) make Pagination goto input optionnal
Based on a recent request we needed to make it optionnal in order to have simpler pagination in some cases. Closes #183
This commit is contained in:
@@ -53,6 +53,13 @@ You can also set the page programmatically, for example, if you want to use a qu
|
||||
<Story id="components-pagination--force-page"/>
|
||||
</Canvas>
|
||||
|
||||
|
||||
### Hide go to input
|
||||
|
||||
You can also hide the go to input if you don't want to allow the user to go to a specific page or to have a simpler pagination.
|
||||
|
||||
<Canvas of={Stories.WithoutGoto}/>
|
||||
|
||||
### Things to know
|
||||
|
||||
- The pagination will never render if the number of pages is less than 2.
|
||||
@@ -65,4 +72,4 @@ You can also set the page programmatically, for example, if you want to use a qu
|
||||
|
||||
### `usePagination` hook
|
||||
|
||||
<ArgTypes of={usePagination} />
|
||||
<ArgTypes of={usePagination} />
|
||||
|
||||
Reference in New Issue
Block a user