afs19 / filament-vertical-tabs
A Filament v3 package that adds vertical tabs functionality
Installs: 111
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 1
Forks: 1
Open Issues: 1
Language:Blade
Requires
- php: ^8.1
- filament/filament: ^3.0
- laravel/framework: ^11.0 || ^12.0
README
A Filament v3 package that adds vertical tabs functionality with a mobile-responsive interface.
Features
- Vertical tabs layout for Filament forms
- Responsive design with mobile navigation
- Previous/next buttons for easy tab navigation on mobile
- Smooth transitions between tabs
- RTL support
- Dark mode support
Requirements
- PHP 8.1+
- Laravel 11.0+
- Filament v3.0+
Installation
You can install the package via Composer:
composer require afs19/filament-vertical-tabs
Usage
Basic Usage
use Filament\Forms\Components\Tabs; use Filament\Forms\Components\Tabs\Tab; Tabs::make('Settings') ->vertical() // This activates the vertical tabs layout ->tabs([ Tab::make('General') ->icon('heroicon-o-cog') ->schema([ // Your form components here ]), Tab::make('Notifications') ->icon('heroicon-o-bell') ->schema([ // Your form components here ]), // Add more tabs as needed ]);
Customization
You can publish the views for customization:
php artisan vendor:publish --tag=filament-vertical-tabs-views
How It Works
This package adds a vertical()
macro to Filament's Tabs component. When called, it:
- Sets the tabs to use a vertical layout
- Overrides the default Tabs view with a custom one that displays tabs vertically
- Adds mobile responsiveness with a sliding panel for navigation
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
The MIT License (MIT). Please see License File for more information.