@ygor-ui/presets
Version:
Panda CSS presets for Ark UI components
35 lines (33 loc) • 849 B
text/typescript
import { hoverCardAnatomy } from '@ark-ui/react'
import { defineSlotRecipe } from '@pandacss/dev'
export const hoverCard = defineSlotRecipe({
className: 'hoverCard',
description: 'A hover card style',
slots: hoverCardAnatomy.keys(),
base: {
content: {
'--hover-card-background': 'colors.bg.default',
background: 'var(--hover-card-background)',
borderRadius: 'l3',
borderWidth: '1px',
boxShadow: 'lg',
maxW: '80',
p: '4',
position: 'relative',
_open: {
animation: 'fadeIn 0.25s ease-out',
},
_closed: {
animation: 'fadeOut 0.2s ease-out',
},
},
arrow: {
'--arrow-size': '12px',
'--arrow-background': 'var(--hover-card-background)',
},
arrowTip: {
borderTopWidth: '1px',
borderLeftWidth: '1px',
},
},
})