Skip to content

[Feature Request] Add duration Prop to Automatically Dismiss v-alert #20409

Description

@3aluw

Problem to solve

Currently, v-alert components remain visible until manually dismissed, requiring developers to implement a setTimeout() to hide the alert after a certain period. This can lead to repetitive code.

Proposed solution

Introduce a duration prop to the v-alert component. This prop accepts a number representing the duration (in milliseconds) for which the alert should remain visible before automatically closing
usage example :

<v-alert :duration="5000" text=" This alert will automatically close after 5 seconds."/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    T: enhancementFunctionality that enhances existing featuresT: featureA new featuregood first issueA quick-win fix that would be great for new contributors

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions