Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
AnimatePresence wrapper for enter and exit transitions
Presence
AnimatePresence
ui.presence({ initial = false, mode = 'popLayout' }, function() ui.foreach(notices, function(notice, _, itemUi) itemUi.motionDiv({ layout = true, initial = { opacity = 0, x = 36 }, animate = { opacity = 1, x = 0 }, exit = { opacity = 0, x = 36 } }, function() itemUi.text(notice.message) end) end, { keyBy = 'id' }) end)
ui.presence(props?, children?) ui.animatePresence(props?, children?)
lui.presence(props?, children?) lui.animatePresence(props?, children?)
initial
boolean
mode
'sync' | 'wait' | 'popLayout'
custom
any
presenceAffectsLayout
propagate
ui.foreach(..., { keyBy = 'id' })
Was this page helpful?