jacksleight/statamic-miniset
Larablocks Analysis
jacksleight/statamic-miniset works with Laravel 12 and 13 (latest release 2.0.2, Nov 2, 2026).
Recommendation checks
Solid choiceSolid choice: maintained and up to date, meets 2 of 4 checks; below the bar for Recommended on use.
- Works with Laravel 13, the current version
- Released in the last 12 months (Nov 2, 2026)
- 1,199 downloads a month (needs 10,000)
- 9 GitHub stars (needs 100)
State
Actively maintained- Last stable release: Nov 2, 2026.
- 3 releases in the last 12 months.
- First released: Apr 5, 2022.
- Monthly downloads: 1,199.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.
| Install | |
|---|---|
composer require jacksleight/statamic-miniset |
|
| Latest Version: | 2.0.2 |
| Laravel: | 12 · 13 |
| License: | MIT |
| Last Updated: | Nov 2, 2026 |
| Links: | GitHub · Packagist |
Miniset
Miniset allows you to create compact sets of fields that either combine into a string of classes, or return a simple array of values.
Miniset includes the following components:
- Miniset
A general purpose fieldtype for creating a compact set of fields that return a simple array of values. - Miniset Classes
A class specific fieldtype for creating a compact set of fields that combine into a string of classes, including variant options. Works great with Tailwind CSS.
Installation
You can search for this addon in the Tools > Addons section of the Statamic control panel and click install, or run the following command from your project root:
composer require jacksleight/statamic-miniset
Creating a Miniset Field
Create a Miniset field and add your nested fields. Miniset is intended for simple data (single or multiple scalar values) and only officially supports these nested fieldtypes:
- Select (inc. multiple)
- Button Group
- Checkboxes
- Radio
- Text
- Textarea
- Toggle
- Range
Other fieldtypes can be added but will not have a compact style.
Miniset returns a simple array of values which can either be output in its entirety, or individual values can be output by referencing their key:
{{ my_options | json }}
{{ my_options.theme }}
Creating a Miniset Classes Field
Create a Miniset Classes field and add your nested fields and variants. Miniset Classes only supports the following nested fieldtypes:
- Select (inc. multiple)
- Button Group
- Checkboxes
- Radio
- Text (not
jit_safecompatible) - Textarea (not
jit_safecompatible)
Other fieldtypes should not be added and may cause errors or unexpected results.
Variants will be offered as options when adding groups of fields. By default the variant keys will be prepended to the class value and separated with a colon:
lg / w-32 --> lg:w-32
If you're not using this convention you can customise the behaviour by including an ampersand in your variant keys. The ampersand will be replaced with the class value when augmented:
&@large / width-half --> width-half@large
Miniset Classes will return a single string of classes that can be output in a class attribute:
<div class="{{ my_classes }}">
Using jit_safe mode with Tailwind
When using Tailwind the JIT compiler scans your content for classes, and this will need to include any classes that could be selected by users in the control panel. To simplify this process Miniset has a jit_safe mode. To enable this publish the config:
php please vendor:publish --tag=statamic-miniset-config
Then open config/statamic/miniset.php and set the jit_safe.enable option to true:
'jit_safe' => [
'enable' => true,
'file' => resource_path('css/statamic/miniset_classes.yaml'),
],
Once enabled Miniset will scan your fields and save a full list of possible classes to resources/css/statamic/miniset_classes.yaml whenever you update a blueprint or fieldset.
You can then tell Tailwind to search this file in your CSS:
@source "./statamic/miniset_classes.yaml";
You can also manually run this scan on all fieldsets and blueprints via the command line using php please miniset:jit-safe-scan.
Sponsoring
This addon is completely free to use. However fixing bugs, adding features and helping users takes time and effort. If you find this addon useful and would like to support its development any contribution would be greatly appreciated. Thanks! 🙂
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | License |
|---|---|---|
| 2.0.2 | MIT | |
| 2.0.1 | ||
| 2.0.0 | ||
| 1.3.1 | ||
| 1.3.0 | ||
| 1.2.0 | ||
| 1.1.2 | ||
| 1.1.1 | ||
| 1.1.0 | ||
| 1.0.4 | ||
| 1.0.3 | ||
| 1.0.2 | ||
| 1.0.1 | ||
| 1.0.0 | ||
| 0.3.1 | ||
| 0.3.0 | ||
| 0.2.1 | ||
| 0.2.0 | ||
| 0.1.0 |