Getting Started
Quick Start
Add your first Velyx component, understand the workflow, and move from documentation to implementation quickly in Laravel.
1. Initialize Velyx
Run the init command from your Laravel project root.
For a non-interactive setup with defaults:
2. Add a Component
Use the CLI to copy a component into your application.
3. List or Search Components
Explore available registry components directly from your terminal.
4. Use the Component
The copied component is now available in your Blade templates.
<x-button>Click me</x-button>
<x-button variant="secondary">Secondary Action</x-button>
<x-button variant="outline" size="sm">Small Button</x-button>
button
Loading source...
5. Customize
Components are copied directly into your project, so you can customize markup, classes, and behavior.
<!-- resources/views/components/button.blade.php -->
@props([
'variant' => 'default',
'size' => 'default',
])
<button class="..." {{ $attributes }}>
{{ $slot }}
</button>