Shaheen
toggle in input hint
It would be wonderful to be able to achieve something like the following
I think use cases for this would be endless, one for example is to mirror another input maybe something like this
I tried to achieve something similar and after hours of trying I did it using hintAction with a custom action and a custom view which renders a toggle
and the most interesting part in the toggle view is for chars limits
which works but I feel it's hacky and not the best way to do it, I'm willing to put the effort to achieve it this is the best I could come up with, any help is appreciated.
2 replies
Placholder component doesn't render state by default
every time I use the Placeholder component I have to manually set the content to the state using
Placeholder::make('name')->content(fn($state) => $state)
Am I doing something wrong or this is supposed to be default behaviour? if it's default behaviour why is it doesn't have content set to state by default?3 replies