LaraUI - V1.0

Hidden

The <x-xf::hidden> component is a lightweight Blade component used to render hidden input fields in forms. It simplifies injecting hidden data (such as IDs, tokens, or flags) into submissions without cluttering the UI.

📄 <x-xf::hidden>

📘 Description

The <x-xf::hidden> component is a minimal Blade component used to render hidden input fields in a Laravel form. It's useful for passing data silently, such as resource IDs, states, flags, or metadata that should not be edited by users.

This component is especially helpful when working with dynamic forms where values must be preserved or tracked behind the scenes.

✅ Usage Example

<x-xf::hidden 
    name="user_id" 
    value="123"
/>

🔑 Props

Name Type Required Default Description
name string ✅ The name of the input. Required for submitting form data.
value mixed ✅ The value to be passed silently with the form.

🛡 Features

  • ✅ Clean hidden input injection
  • ✅ Ideal for internal data like IDs or tokens
  • ✅ Simplifies value passing without UI elements
  • ✅ Works with model binding and dynamic form flows