Getting started
Carve UI provides a set of accessible, headless component primitives that integrate seamlessly with Alpine.js. With Carve UI, you can add flexible components to your project while maintaining full control over styling and functionality. This guide will help you set up Carve UI in your project.
Installation
First, you’ll need to install alpinejs
, carve-ui
, and a few plugins. Carve UI components use certain Alpine plugins for enhanced interactivity, so be sure to include them:
Setting Up Alpine with Carve UI
Once your packages are installed, configure Alpine.js and Carve UI in your main JavaScript file. Import Alpine and the necessary Carve UI functions, then register your components.
Carve UI registers the needed plugins for you. If you want to only include some components you can register them like this.