nuxt / nuxt/ui

Error Transition for form fields

Open
#3,428 0 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
6.9k
Forks
1.1k
Avg merge
1d 7h
Merged PRs (30d)
57

Description

Description

It would be nice to have an easy to enable/add transition for how errors will be displayed example

 <Transition name="error-slide" mode="out-in">
    <div v-if="error" class="error-message">
        {{ error }}
    </div>
  </Transition>
.error-slide-enter-active,
.error-slide-leave-active {
  transition:
    opacity 0.25s ease,
    transform 0.2s ease-out,
    max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 100px;
  overflow: hidden;
  transform-origin: top;
}
.error-slide-enter-from {
  opacity: 0;
  transform: translateY(-5px);
  max-height: 0;
}
.error-slide-leave-to {
  opacity: 0;
  transform: translateY(-5px);
  max-height: 0;
}
Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name a file or test; start by locating the form-field components that render validation errors. Compare their current error rendering with the proposed transition and CSS, then verify that enabling the feature produces consistent enter and leave animations without breaking existing fields.

Written by the indexing model from the issue text.

Assessment

Tech stack
tailwindcss, typescript
Domain
design, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.