@corvu-next/presence
v0.1.5
Published
SolidJS 2 utility that manages the presence of an element in the DOM while being aware of pending animations.
Maintainers
Readme
@corvu-next/presence
Presence animation utility for SolidJS 2.0 — mount/unmount with enter/exit animations.
Note: This is the Solid 2.0 fork of solid-presence. It targets
[email protected].
Features
- Mount/unmount elements with CSS or JS animations
- Tracks animation state (entering, present, exiting)
- Integrates with CSS transition/animation events
- Headless — doesn't create extra DOM elements
Installation
pnpm add @corvu-next/presenceUsage
import createPresence from '@corvu-next/presence'
const presence = createPresence({ show: () => isOpen() })Further Reading
This package is part of corvu-next, a collection of unstyled, accessible and customizable UI primitives for SolidJS 2.0.
