Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add slim prop to Form component #4483

Closed
hackel opened this issue Sep 25, 2023 · 1 comment
Closed

Add slim prop to Form component #4483

hackel opened this issue Sep 25, 2023 · 1 comment
Labels
✨ enhancement a "nice to have" feature

Comments

@hackel
Copy link

hackel commented Sep 25, 2023

Is your feature request related to a problem? Please describe.

When upgrading to v4, I replaced a ValidationObserver using the slim prop with a Form component as a div. This worked fine, but broke the flexbox layout that was used on the form.

Describe the solution you'd like

If the Form component supported the slim prop (or :as="null") to make a renderless component, it would solve the layout issue.

Describe alternatives you've considered

I rewrote my component using useForm and that worked fine, but it would be nice not to have to do that extra work.

@logaretm logaretm added the ✨ enhancement a "nice to have" feature label Sep 29, 2023
@logaretm
Copy link
Owner

You can give it an empty string, like as="" but allowing null should be allowed, I will add that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement a "nice to have" feature
Projects
None yet
Development

No branches or pull requests

2 participants