fix(components): replace as const with correct type in config (#2652)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
Giorgio Boa
2024-11-20 10:54:37 +01:00
committed by GitHub
parent 588a908358
commit 51c8b8e3e5
16 changed files with 66 additions and 42 deletions

View File

@@ -1,3 +1,5 @@
import type { ButtonColor } from '../../types'
export default {
wrapper: 'relative',
container: 'relative w-full flex overflow-x-auto snap-x snap-mandatory scroll-smooth',
@@ -13,12 +15,12 @@ export default {
},
default: {
prevButton: {
color: 'black' as const,
color: 'black' as ButtonColor,
class: 'rtl:[&_span:first-child]:rotate-180 absolute start-4 top-1/2 transform -translate-y-1/2 rounded-full',
icon: 'i-heroicons-chevron-left-20-solid'
},
nextButton: {
color: 'black' as const,
color: 'black' as ButtonColor,
class: 'rtl:[&_span:last-child]:rotate-180 absolute end-4 top-1/2 transform -translate-y-1/2 rounded-full',
icon: 'i-heroicons-chevron-right-20-solid'
}