© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•10mo ago•
5 replies
Asmit

How filament component works ?

Hi everyone!
I’m currently tinkering with a custom Filament form field and ran into a bit of confusion.
I tried the following in a Blade file:
<x-filament-forms::text-input />
@include('filament-forms::components.text-input')
<x-filament-forms::text-input />
@include('filament-forms::components.text-input')


The first line (
<x-filament-forms::text-input />
<x-filament-forms::text-input />
) throws this error:
Undefined variable $getDatalistOptions
Undefined variable $getDatalistOptions

But the second line using
@include
@include
works fine.

I thought Filament form fields are Blade components, so I’m unsure why this is happening.
Here’s the custom field I’m working on:
class NewInput extends TextInput
{
    protected string $view = 'forms.components.new-input';
}
class NewInput extends TextInput
{
    protected string $view = 'forms.components.new-input';
}


Can someone please explain how Filament renders these components, why this happening and what’s the correct way to use them , especially when customizing or extending?

Thanks in advance!
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Filament component
FilamentFFilament / ❓┊help
3y ago
How to delete component filament in Dashboard?
FilamentFFilament / ❓┊help
2y ago
Filament Google maps component
FilamentFFilament / ❓┊help
13mo ago
Froala Editor - Filament Component
FilamentFFilament / ❓┊help
2y ago