Download the PHP package jodeveloper/filament-rating without Composer
On this page you can find all versions of the php package jodeveloper/filament-rating. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jodeveloper/filament-rating
More information about jodeveloper/filament-rating
Files in jodeveloper/filament-rating
Package filament-rating
Short Description The rating field with icons and colors for the Filament forms
License MIT
Homepage https://github.com/jodeveloper/filament-rating
Informations about the package filament-rating
Filament Rating Field
A rating field for Filament forms with support for icons, colors, and inline alignment.
Installation
You can install the package via composer:
Add the package blade files the content section of the tailwind.config.js file.
Optionally, you can publish the views using
Usage
Basic Usage
With Icons
With Colors
With Icons and Individual Colors
Note: You can use any icon name from the Blade Icons library. The package will automatically render the icon with the appropriate color and styling.
With Individual Colors and Default Color
Note: You can use any icon name from the Blade Icons library. The package will automatically render the icon with the appropriate color and styling.
Hide Labels (Show Only Icons)
Methods
icons(array $icons): Set the icons for the rating options. The array key should match the option value.colors(array $colors): Set individual colors for each rating option. The array key should match the option value.defaultColor(string $color): Set the default color for rating options when no individual color is specified (e.g., 'yellow', 'blue', 'green', 'red').color(string $color): Alias fordefaultColor()method.showLabel(bool $showLabel = true): Set whether to show the label alongside the icon.inline(bool $inline = true): Set whether the options should be displayed inline.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- JoDeveloper
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-rating with dependencies
filament/forms Version ^2.0|^3.0|^4.0
illuminate/contracts Version ^8.6|^9.0|^10.0|^11.0|^12.0
spatie/laravel-package-tools Version ^1.9.2