/filament-radio-button-field

The radio button field for the Filament forms

Primary LanguageBladeMIT LicenseMIT

The radio button field for the Filament forms

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Installation

You can install the package via composer:

composer require suleymanozev/filament-radio-button-field

Add the package blade files the content section of the tailwind.config.js file.

module.exports = {
    content: [
        "./resources/**/*.blade.php",
        "./vendor/suleymanozev/**/*.blade.php", // Add this line
    ],
    theme: {
        extend: {},
    },
    plugins: [],
}

Optionally, you can publish the views using

php artisan vendor:publish --tag="filament-radio-button-field-views"

Usage

RadioButton::make('amount')
    ->label('Example Label')
    ->options(['1' => 'Example Option Label', '2' => 'Example Option Label 2'])
    ->descriptions(['1' => 'Example Description', '2' => 'Example Description 2'])
    ->columns(3),

Testing

composer test

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

License

The MIT License (MIT). Please see License File for more information.