Basic implementation for anime page
This commit is contained in:
31
app/components/ui/hoverable-image/index.ts
Normal file
31
app/components/ui/hoverable-image/index.ts
Normal file
@ -0,0 +1,31 @@
|
||||
import type { VariantProps } from "class-variance-authority"
|
||||
import { cva } from "class-variance-authority"
|
||||
|
||||
export { default as HoverableImage } from "./HoverableImage.vue"
|
||||
|
||||
export const imageVariants = cva(
|
||||
"relative group cursor-pointer overflow-hidden rounded-lg",
|
||||
{
|
||||
variants: {
|
||||
variant: {
|
||||
default: "border border-border",
|
||||
rounded: "rounded-full overflow-hidden",
|
||||
elevated: "shadow-lg hover:shadow-xl",
|
||||
minimal: "border-0",
|
||||
},
|
||||
size: {
|
||||
sm: "max-w-xs",
|
||||
md: "max-w-md",
|
||||
lg: "max-w-lg",
|
||||
xl: "max-w-xl",
|
||||
full: "w-full",
|
||||
}
|
||||
},
|
||||
defaultVariants: {
|
||||
variant: "default",
|
||||
size: "md",
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
export type HoverableImageVariants = VariantProps<typeof imageVariants>
|
||||
Reference in New Issue
Block a user