Add an Action to a Form label or hint
Is there a way to add an
Action
to the field label of a Filament Form? Kind of like this (see video). Or add an Action
to a field's hint()
?Solution:Jump to solution
there is hint action if you searched the docs ):
https://filamentphp.com/docs/3.x/forms/actions#adding-a-hint-action-to-a-field...
11 Replies
Solution
there is hint action if you searched the docs ):
https://filamentphp.com/docs/3.x/forms/actions#adding-a-hint-action-to-a-field
Not sure how I missed that π
sorry
Any idea on how to show it on hover @Lara Zeus ?
np π
you mean trigger the action on hover?!!
No not trigger, showing. So hide it initially and show when hovering over the field
you could target that with css and add extra attribute
@Lara Zeus thanks, I tried that using styling based on parent state (
.group
) and with sibling state (.peer
) but none of that works, as the extra attribute is added to the input element wrapper, and the hint is not a child or sibling.
Do you have any idea?π€
what if you add the extraAttributes to the action itself?
This is what I tried @Lara Zeus
you can add transition and stuff to make it smooth and better UI
but this is the trick: wrap it in a grid π
@Lara Zeus hero! Thanks!