petalframework / petal_components

Phoenix + Live View HEEX Components
https://petal.build/components
MIT License
818 stars 94 forks source link

Add pagination attribute allowing always shown prev and next buttons #264

Closed angelasheppard closed 1 year ago

angelasheppard commented 1 year ago

Adds a boolean attribute to the pagination component allowing the previous & next buttons to always be shown on the boundary pages. Defaults to current behavior (prev not shown on page 1, next not shown on last page).

Buttons shown on those boundary pages are disabled and reduced opacity.

Loom of the live boilerplate page

Resolves #140

nhobes commented 1 year ago

This is great, thanks so much for contributing! 🙌