muazzam/slick-scrollbar 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

muazzam/slick-scrollbar

Composer 安装命令:

composer require muazzam/slick-scrollbar

包简介

Slick Scrollbar plugin for Filament panels (Filament v4 & v5).

README 文档

README

📖 About

Slick Scrollbar is a lightweight plugin that gives your Filament v4 & v5 panels clean, theme-aware scrollbars.
It automatically inherits your panel’s colors (secondary → primary) and works seamlessly in both light and dark mode.

✨ Features

  • 🎨 Automatic theme colors — Uses panel secondary (500/600), or falls back to primary (500/600).
  • 🎛️ Customizable — Override size, color, and hover color with CSS variables, hex, RGB, OKLCH, or Filament Color palettes.
  • 🖥️ Cross-browser support — Works on Firefox, Chrome, Edge, and Safari.
  • 🌗 Dark mode ready — Adapts to your Filament theme out of the box.

📦 Installation

Install via Composer:

composer require muazzam/slick-scrollbar

Filament will auto-discover the service provider.

⚙️ Usage

Enable the plugin in your panel provider:

use Muazzam\SlickScrollbar\SlickScrollbarPlugin;

public function panel(\Filament\Panel $panel): \Filament\Panel
{
    return $panel->plugins([
        SlickScrollbarPlugin::make(),
    ]);
}

That’s it 🎉 — scrollbars will automatically use your panel’s theme colors.

🎨 Configuration & Customization

Default behavior

If your panel defines custom colors:

->colors([
    'primary' => \Filament\Support\Colors\Color::Amber,
    'secondary' => \Filament\Support\Colors\Color::Cyan,
])

The plugin will use:

  • Secondary: 500 for normal, 600 for hover
  • If no secondary is defined → Primary: 500 for normal, 600 for hover
  • If neither are set, the plugin falls back to safe defaults (amber / cyan).

Override settings

use Filament\Support\Colors\Color;

SlickScrollbarPlugin::make()
    ->size('6px')                   // scrollbar width/height (default: 8px)
    ->palette('primary')            // force panel palette ('primary' or 'secondary')
    ->color(Color::Amber)           // use a Filament palette (500 normal, 600 auto for hover)
    ->hoverColor(Color::Amber, 700) // pick a custom shade
    ->color('#ef4444')              // hex
    ->hoverColor('rgb(220 38 38)')  // rgb()
    ->color('var(--primary-500)');  // reference CSS vars directly

📸 Screenshots

alt text

📋 Requirements

  • PHP ^8.2
  • Laravel ^10 | ^11 | ^12 | ^13
  • Filament ^4.0 | ^5.0

🚀 Versioning

  • v1.x → Compatible with Filament v4 and v5
  • Future Filament majors will get their own major version of this package when breaking API changes require it.

🔧 Development

Clone and install:

git clone https://github.com/Muazzamkhan95/slick-scrollbar.git
cd slick-scrollbar
composer install

In your app’s composer.json:

"repositories": [
  {
    "type": "path",
    "url": "../slick-scrollbar",
    "options": { "symlink": true }
  }
]

Require it locally:

composer require muazzam/slick-scrollbar:*@dev

📝 License

This package is open-sourced software licensed under the MIT license.

❤️ Credits

  • Muazzam Khan – Author
  • Filament – Admin

muazzam/slick-scrollbar 适用场景与选型建议

muazzam/slick-scrollbar 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5.2k 次下载、GitHub Stars 达 13, 最近一次更新时间为 2025 年 09 月 05 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 muazzam/slick-scrollbar 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 muazzam/slick-scrollbar 我们能提供哪些服务?
定制开发 / 二次开发

基于 muazzam/slick-scrollbar 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 13
  • Watchers: 0
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-09-05