Skip to content

Error Transition for form fields #3428

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

Open
OsamaHaikal opened this issue Mar 1, 2025 · 0 comments · May be fixed by #4147
Open

Error Transition for form fields #3428

OsamaHaikal opened this issue Mar 1, 2025 · 0 comments · May be fixed by #4147
Labels
enhancement New feature or request triage v3 #1289

Comments

@OsamaHaikal
Copy link

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

@OsamaHaikal OsamaHaikal added enhancement New feature or request triage v3 #1289 labels Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage v3 #1289
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant