PHPackages                             astersnake/filament-radio-group - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. astersnake/filament-radio-group

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

astersnake/filament-radio-group
===============================

A radio group field for Filament with support for icons and custom colors.

v0.2.0-alpha(3y ago)31901[2 PRs](https://github.com/astersnake/filament-radio-group/pulls)MITBladePHP ^8.0

Since Jun 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/astersnake/filament-radio-group)[ Packagist](https://packagist.org/packages/astersnake/filament-radio-group)[ Docs](https://github.com/astersnake/filament-radio-group)[ GitHub Sponsors](https://github.com/astersnake)[ RSS](/packages/astersnake-filament-radio-group/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)Dependencies (15)Versions (5)Used By (0)

filament-radio-group Package Documentation
==========================================

[](#filament-radio-group-package-documentation)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5828a5312be897734b91337912a26008658926d10b2d894379971ada8829bf3d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6173746572736e616b652f66696c616d656e742d726164696f2d67726f75702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/astersnake/filament-radio-group)[![GitHub Tests Action Status](https://camo.githubusercontent.com/e45103617fb30b8b0334ff227696c7ad308ae4d7f2ce547b7e2aeae823fcf107/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6173746572736e616b652f66696c616d656e742d726164696f2d67726f75702f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/astersnake/filament-radio-group/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/1778dd8190061c8307469bd286b75750ba4f8fbfa909915474036556a2b969ac/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6173746572736e616b652f66696c616d656e742d726164696f2d67726f75702f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/astersnake/filament-radio-group/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/8ac79bd008a4f49eb40c42b5ea00163baf4c40551845e36c2a726770ee94b463/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6173746572736e616b652f66696c616d656e742d726164696f2d67726f75702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/astersnake/filament-radio-group)

[![Xnapper-2023-06-25-17 45 10](https://private-user-images.githubusercontent.com/22416775/248588888-1e93b0f5-1ec3-4c01-aca3-7d80229cb021.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODMxNTQ5NTIsIm5iZiI6MTc4MzE1NDY1MiwicGF0aCI6Ii8yMjQxNjc3NS8yNDg1ODg4ODgtMWU5M2IwZjUtMWVjMy00YzAxLWFjYTMtN2Q4MDIyOWNiMDIxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA3MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNzA0VDA4NDQxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQzYjA2NTgwOWM1NWYzYTRiN2M0MGE3ZTJmOWFmNzJjYWZmNzM1NTM0Yzg3N2ExODA1MjJmMDg4OGZiMDU1OGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.2tI1zOGX4ZM90LDEIz5a-F_WNoKLkIjZvkqjGIps18Y)](https://private-user-images.githubusercontent.com/22416775/248588888-1e93b0f5-1ec3-4c01-aca3-7d80229cb021.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODMxNTQ5NTIsIm5iZiI6MTc4MzE1NDY1MiwicGF0aCI6Ii8yMjQxNjc3NS8yNDg1ODg4ODgtMWU5M2IwZjUtMWVjMy00YzAxLWFjYTMtN2Q4MDIyOWNiMDIxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA3MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNzA0VDA4NDQxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQzYjA2NTgwOWM1NWYzYTRiN2M0MGE3ZTJmOWFmNzJjYWZmNzM1NTM0Yzg3N2ExODA1MjJmMDg4OGZiMDU1OGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.2tI1zOGX4ZM90LDEIz5a-F_WNoKLkIjZvkqjGIps18Y)

The filament-radio-group package provides an enhanced radio button group functionality for your Filament applications. It offers a cleaner way to handle and display multiple radio button options, with support for customized icons, descriptions, and display arrangements.

Installation
------------

[](#installation)

Install the filament-radio-group package via composer:

```
composer require astersnake/filament-radio-group
```

Usage
-----

[](#usage)

The filament-radio-group package provides a `RadioGroup` class, which you can use to construct a radio button group in your application.

```
use Astersnake\Filament\RadioGroup\RadioGroup;

$radioGroup = RadioGroup::make('radio_group')
    ->options([
        'option_1' => 'Option 1',
        'option_2' => 'Option 2',
        'option_3' => 'Option 3',
    ])
    ->descriptions([
        'option_1' => 'Description for option 1',
        'option_2' => 'Description for option 2',
        'option_3' => 'Description for option 3',
    ])
    ->icons([
        'option_1' => 'lucide-fish',
        'option_2' => 'lucide-fish',
        'option_3' => 'lucide-fish',
    ])
    ->iconsColor([
        'option_1' => 'text-primary-600',
        'option_2' => 'text-success-600',
        'option_3' => 'text-danger-600',
    ])
    ->columns(3)
    ->required();
```

In the example above, `RadioGroup::make('radio_group')` creates a new radio button group with the name 'radio\_group'.

- The `options()` method takes an associative array where keys are option values and values are option labels.
- The `descriptions()` method takes an associative array where keys are option values and values are descriptions for options.
- The `icons()` method takes an associative array where keys are option values and values are icon names.
- The `iconsColor()` method is used to assign colors to the icons.

Theming
-------

[](#theming)

If you are using a custom theme for Filament, you will need to add this package's views to your Tailwind CSS config.

```
content: [
    ...
    "./vendor/astersnake/filament-radio-group/resources/views/**/*.blade.php",
],
```

Full Compatibility
------------------

[](#full-compatibility)

The filament-radio-group package is built on the original Filament radio field, which means it supports all the functionalities available from the base radio field. This includes but is not limited to labeling, setting a default value, and adding help text. The package simply extends these functionalities, providing more flexibility and customization options.

For more information on using the base radio field functionalities, please refer to the [Filament Documentation](https://filamentadmin.com/docs/2.x/forms/fields#radio).

Testing
-------

[](#testing)

To run the tests for the package:

```
composer test
```

Changelog
---------

[](#changelog)

Please refer to the [CHANGELOG](CHANGELOG.md) for more information about the recent changes.

Contributing
------------

[](#contributing)

Your contributions are always welcome! Please see our [CONTRIBUTING](.github/CONTRIBUTING.md) guide for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you discover any security vulnerabilities in this package, please follow our [security policy](../../security/policy) to report them.

Credits
-------

[](#credits)

- [astersnake](https://github.com/astersnake)
- [All Contributors](../../contributors)

License
-------

[](#license)

This package is licensed under the MIT License (MIT). Please see the [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 77.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1105d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22416775?v=4)[Astersnake](/maintainers/astersnake)[@astersnake](https://github.com/astersnake)

---

Top Contributors

[![astersnake](https://avatars.githubusercontent.com/u/22416775?v=4)](https://github.com/astersnake "astersnake (7 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laravelastersnakefilament-radio-group

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/astersnake-filament-radio-group/health.svg)

```
[![Health](https://phpackages.com/badges/astersnake-filament-radio-group/health.svg)](https://phpackages.com/packages/astersnake-filament-radio-group)
```

###  Alternatives

[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[stephenjude/filament-jetstream

A Laravel starter kit built with Filament inspired by Jetstream.

17760.2k3](/packages/stephenjude-filament-jetstream)[stephenjude/filament-debugger

About

104162.2k2](/packages/stephenjude-filament-debugger)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[stephenjude/filament-feature-flags

Filament implementation of feature flags and segmentation with Laravel Pennant.

122177.8k1](/packages/stephenjude-filament-feature-flags)[finity-labs/fin-mail

A powerful email template manager and composer for Filament with dynamic token replacement, template versioning, and inline email sending.

284.5k1](/packages/finity-labs-fin-mail)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
