feat: add Pagination component exports and enhance PaginationLink styles

- Exported the new Pagination component from the index file to make it available for use.
- Updated the PaginationLink styles to improve hover effects and active state visibility, enhancing user experience.
This commit is contained in:
MyPrototypeWhat 2025-11-20 15:27:06 +08:00
parent 02a65daa27
commit e694ae68e3
2 changed files with 3 additions and 1 deletions

View File

@ -58,6 +58,7 @@ export * from './primitives/combobox'
export * from './primitives/command' export * from './primitives/command'
export * from './primitives/dialog' export * from './primitives/dialog'
export * from './primitives/kbd' export * from './primitives/kbd'
export * from './primitives/pagination'
export * from './primitives/popover' export * from './primitives/popover'
export * from './primitives/radioGroup' export * from './primitives/radioGroup'
export * from './primitives/select' export * from './primitives/select'

View File

@ -39,7 +39,8 @@ function PaginationLink({ className, isActive, size = 'icon', ...props }: Pagina
variant: isActive ? 'outline' : 'ghost', variant: isActive ? 'outline' : 'ghost',
size size
}), }),
'text-foreground', 'text-foreground hover:text-primary hover:shadow-none hover:bg-primary/10',
isActive && 'bg-background text-primary',
className className
)} )}
{...props} {...props}