Headless
Last updated
Was this helpful?
Last updated
Was this helpful?
Sometimes you only want the fields instead of an entire form component. When you use the fields this way, you design the component following Livewire conventions.
Think of it as a tool to auto-generate html for the fields, nothing else.
You cannot use fields that lack "headless" support, like the Repeater.
Check the "Headless" tab on each field page, you might need to add traits.
You will not be able to use field methods like rules()
or default()
Above, Below, Before, After, Help slots are available.
Validation errors are automatically displayed
"Headless" is usually used to refer to something without styling. With Tall-forms this is true in the sense that you control the styling in the theme file.
But, you can override the fields default styling when you declare the field in a blade view, which is why we can call it "headless" :)
See Blade components, page
See page about differences
All fields are blade components. There are aliases in the file.