- What does giacomomasseron/filament-textinput-autocomplete do?
- It is a lightweight Filament plugin that adds autocomplete suggestions to standard text input fields. As users type, it shows a searchable dropdown of matching values, which is useful for tags, categories, locations, and other data-backed fields.
- How do I install the Filament text input autocomplete package?
- Install the package with Composer by running composer require giacomomasseron/filament-textinput-autocomplete. Then follow the repository README for any Filament asset publishing or component registration steps. Once installed, use the package's autocomplete text input component in your Filament form schema.
- Can I load autocomplete suggestions from a database?
- Yes, the package supports dynamic or database-driven suggestions in addition to static arrays. You can use it to query existing records and present valid options while the user types. This fits fields such as categories or locations that already exist in your database.
- Can I use a static array as the suggestion source?
- Yes, static arrays are supported as a suggestion source. This is handy for small, fixed option lists where you do not need a database query. You provide the array to the field and the component handles the searchable dropdown behavior.
- How do I configure minimum input length and debounce?
- The package provides configurable minimum input length and debounce behavior. Set those options on the field according to the package README so suggestions only appear after enough characters and without firing a request on every keystroke. This helps balance responsiveness and server load.
- Does it work with Livewire-powered Filament forms?
- Yes, it is built for Filament form text inputs and works with Livewire-powered Filament forms. The autocomplete behavior integrates into the form schema rather than requiring a separate custom form stack. Check the README for the exact component namespace and usage example.
- How do I customize suggestion rendering and styling?
- The package supports customizable suggestion rendering and styling, so you can adapt the dropdown to your admin panel. Review the README for available rendering hooks or view overrides before changing styles. Keep custom markup small and test it with long labels and empty states.
- Which Laravel and Filament versions are supported?
- The repository's composer.json is the source of truth for supported Laravel, PHP, and Filament versions. Check those constraints before installing it in an existing admin panel, especially if you are pinned to an older Filament major version. This avoids Composer conflicts with your current stack.
- How do I test autocomplete fields before using them in production?
- Test the field with Filament and Livewire testing helpers by rendering the form, setting the input value, and asserting that expected suggestions appear. Use realistic data and test edge cases such as no matches, short input below the minimum length, and debounce timing. Before production, review the package's maintenance status and release history, then verify behavior in staging with your actual dataset.
- What are alternatives to this package for Filament autocomplete fields?
- Alternatives include Filament's built-in searchable Select field when users must choose from a finite list, or a custom Livewire component for highly specialized autocomplete behavior. This package is specifically aimed at adding suggestions to text inputs, so it is a better fit when free text plus suggestions is the desired interaction. Compare maintenance status and Filament version compatibility before choosing.