Label
Reusable form label component.
Examples
Basic Label
blade
<x-plume::form >
<x-plume::form.label for="email">Email Address</x-plume::form.label>
</x-plume::form>
Required Label
blade
<x-plume::form >
<x-plume::form.label for="password" required>Password</x-plume::form.label>
</x-plume::form>
| Prop | Type | Default | Description |
|---|---|---|---|
| for | string | null | The ID of the input this label is for. |
| required | bool | false | Whether to display a required indicator (asterisk). |
Usage
blade
<x-plume::form.label for="input-id" required>
Label Text
</x-plume::form.label>