feat(Pagination): new component (#257)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
Co-authored-by: Haytham A. Salama <haythamasalama@gmail.com>
This commit is contained in:
Sylvain Marroufin
2023-06-09 18:12:40 +02:00
committed by GitHub
parent f7a34c8fee
commit f0b24ba25d
11 changed files with 625 additions and 13 deletions

View File

@@ -634,6 +634,29 @@ const commandPalette = {
}
}
const pagination = {
wrapper: 'flex items-center -space-x-px',
base: '',
rounded: 'first:rounded-l-md last:rounded-r-md',
default: {
size: 'sm',
activeButton: {
color: 'primary'
},
inactiveButton: {
color: 'white'
},
prevButton: {
color: 'white',
icon: 'i-heroicons-chevron-left-20-solid'
},
nextButton: {
color: 'white',
icon: 'i-heroicons-chevron-right-20-solid'
}
}
}
// Overlays
const modal = {
@@ -841,6 +864,7 @@ export default {
skeleton,
verticalNavigation,
commandPalette,
pagination,
modal,
slideover,
popover,