Docs

Toggle

View source

Toggle switch component with multiple sizes and accessibility features.

Laravel >=10 Alpine.js v1.0.0 forms interactive

Installation

npx velyx@latest add toggle
pnpm dlx velyx@latest add toggle
yarn dlx velyx@latest add toggle
bunx --bun velyx@latest add toggle

Files land in resources/views/components/ui/toggle/ — yours to edit.

Preview

Rendered from the same Blade template the CLI copies into your project.

toggle
Use the toggle for boolean settings, quick preferences, and permission switches.
Loading source...
            
        

Requirements

Laravel
>=10
Alpine.js
Required
Version
1.0.0 · latest 1.0.0
Categories
ui, forms, interactive

Dependencies

Resolved and installed automatically by the CLI.

Composer
mallardduck/blade-lucide-icons@1.26.1
npm
alpinejs@^3.15.12