Download the PHP package andrewdwallo/filament-selectify without Composer
On this page you can find all versions of the php package andrewdwallo/filament-selectify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download andrewdwallo/filament-selectify
More information about andrewdwallo/filament-selectify
Files in andrewdwallo/filament-selectify
Package filament-selectify
Short Description This is my package filament-selectify
License MIT
Homepage https://github.com/andrewdwallo/filament-selectify
Informations about the package filament-selectify
Filament Selectify
A small package featuring two simple components that serve as excellent alternatives to toggles, radio buttons, and other selectors. These components not only offer seamless user interactions but also maintain UI consistency by effortlessly aligning with neighboring fields and components.
Installation
You can install the package via composer:
Optionally, you can publish the views using
Registering Styles
In order for component styles to be processed, you must add this package's vendor directory into the content array of your tailwind.config.js
file:
Usage
ToggleButton
The ToggleButton has the following options. The onLabel()
and offLabel()
represent the true and false states. You may also customize the color representing each state using onColor()
and offColor()
.
ButtonGroup
The ButtonGroup has the following options. You may customize the color representing each state. The onColor()
represents the button or value that is selected and the offColor()
represents the button or value that is not selected. You may use gridDirection()
to change the layout of the buttons. The options are column
and row
. The default is column
.
You may optionally add icons for the buttons using icons()
and supplying an array that contains the option values as keys and icon names as values. Icon position and size can be changed using iconPosition()
(default: before) and iconSize()
(default: Small).
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
- Andrew Wallo
- All Contributors
License
The MIT License (MIT). Please see License File for more information.