Skip to main content
You are currently viewing the documentation for Filament 3.x, which is a previous version of Filament.Looking for the current stable version? Visit the 5.x documentation.

Overview

Placeholders can be used to render text-only โ€œfieldsโ€ within your forms. Each placeholder has content(), which cannot be changed by the user.
Important: All form fields require a unique name. That also applies to Placeholders!

Rendering HTML inside the placeholder

You may even render custom HTML within placeholder content:

Dynamically generating placeholder content

By passing a closure to the content() method, you may dynamically generate placeholder content. You have access to any closure parameter explained in the advanced closure customization documentation: