Park UI beautifully-designed, accessible components system and code distribution platform. Built with Panda CSS and supporting a wide range of JS frameworks
Installation
1
Add Component
Copy the code snippet below into you components folder.
2
Integrate Recipe
Integrate this recipe in to your Panda config.
Usage
Examples
Lazy Mount
Use the lazyMount prop to mount the content only when the collapsible is open.
Unmount on Exit
Use the unmountOnExit prop to unmount the content when the collapsible is closed.
If you inspect the DOM, you'll notice that the content will be initially mounted and unmounted when collapsed. This is useful for improving performance and preventing background processes (like timers or API calls) from running when the content is hidden.