You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if we didn't have to put the same name attribute on both the InputGroup and Input components to get the label connected to the input.
The InputForm component could provide a unique id down to its child and be injected to use there.
exportconstInputGroupInjectionKey=Symbol('input-group')asInjectionKey<{id: string// ... possibly other things like `invalid`, `describedBy`}>// InputGroup.vueprovide(InputGroupInjectionKey,{
id // eg. input-group-1k4hfe8sh})// Input.vueconstinputGroup=inject(InputGroupInjectionKey,{id: props.name})
This would take the usage of the InputGroup from this:
Describe the solution you'd like
It would be nice if we didn't have to put the same
name
attribute on both theInputGroup
andInput
components to get the label connected to the input.The
InputForm
component could provide a unique id down to its child and be injected to use there.This would take the usage of the
InputGroup
from this:to this:
This is in no way an essential feature, but it would be a nice quality-of-life enhancement in my opinion.
Thank you for this awesome UI library! 🎉
The text was updated successfully, but these errors were encountered: