Getting Started
Installation
Get Velyx working in your Laravel project in under 2 minutes.
Requirements
Velyx is built for modern Laravel projects using:
- Laravel 10+ — Livewire components work on Laravel 10 and above.
- Blade — Velyx components are Blade templates, not abstractions.
- Tailwind CSS v4 — Components use Tailwind utilities. v3 requires config adjustments.
- Alpine.js 3+ — For interactive components (optional; use Livewire for more complex state).
Step 1: Initialize Velyx
Run the init command from your Laravel project root.
For a non-interactive setup with defaults:
Step 2: Add Your First Component
Use the CLI to copy a component into your app.
The button component (and any dependencies) are now copied to your resources/views/components/ui/ directory. No packages, just code you own.
Step 3: Use It
Import and use your component in any Blade template.
<x-ui.button>Click me</x-ui.button>
<x-ui.button variant="outline" size="lg">
Large outline button
</x-ui.button>