定制 afs19/filament-vertical-tabs 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

afs19/filament-vertical-tabs

最新稳定版本:v1.0.2

Composer 安装命令:

composer require afs19/filament-vertical-tabs

包简介

A Filament v3 package that adds vertical tabs functionality

README 文档

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:

  1. Sets the tabs to use a vertical layout
  2. Overrides the default Tabs view with a custom one that displays tabs vertically
  3. 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.

统计信息

  • 总下载量: 1.61k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 14
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 13
  • Watchers: 1
  • Forks: 1
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-12