Skip to content

feat(FormField): add orientation prop - #5632

Merged
benjamincanac merged 6 commits into
nuxt:v4from
edimitchel:feat/form-field-add-orientation
Dec 16, 2025
Merged

benjamincanac merged 6 commits into
nuxt:v4from
edimitchel:feat/form-field-add-orientation

Conversation

@edimitchel

Copy link
Copy Markdown
Contributor

🔗 Linked issue

Resolves #5516

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Adding orientation to UFormField component to let field be shown on right side instead of bottom side.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@github-actions github-actions Bot added the v4 #4488 label Dec 8, 2025
@benjamincanac benjamincanac changed the title feat: add orientation prop to FormField component (#1) feat(FormField): add orientation prop Dec 9, 2025
@benjamincanac

benjamincanac commented Dec 9, 2025 •

Copy link
Copy Markdown
Member

@edimitchel I think the label should be centered when using horizontal orientation:

CleanShot 2025-12-09 at 10 19 28@2x

Copilot AI and others added 2 commits December 9, 2025 10:37
Co-authored-by: edimitchel <2922851+edimitchel@users.noreply.github.com>
@edimitchel
edimitchel force-pushed the feat/form-field-add-orientation branch from 91433cb to 88cae5d Compare December 9, 2025 09:38
@edimitchel

Copy link
Copy Markdown
Contributor Author

@edimitchel I think the label should be centered when using horizontal orientation:

Good catch ! Fixed

@pkg-pr-new

pkg-pr-new Bot commented Dec 13, 2025 •

Copy link
Copy Markdown
npm i https://pkg.pr.new/@nuxt/ui@5632

commit: d94d7ff

@benjamincanac benjamincanac left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @edimitchel! I've made a few changes to improve spacing, more specifically added a place-items-baseline class so the label is centered with the input without taking the help or error slot into account.

@benjamincanac
benjamincanac merged commit b74ec6e into nuxt:v4 Dec 16, 2025
@edimitchel
edimitchel deleted the feat/form-field-add-orientation branch December 16, 2025 14:35

This branch was successfully deployed

1 active deployment
Preview – ui — d94d7ff1 Deployed Dec 16, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v4 #4488

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UFormField] add orientation

3 participants