TrademarkTrademark
Ctrl k
Search docs...
Components

Feedback

Last update: March 8, 2025
The Feedback component provides a consistent way to communicate status messages, alerts, and notifications to users. It supports different variants to convey different types of information effectively.

Basic Usage

The Feedback component has four main variants: info, success, warning, and danger.

Variants

Each variant is designed to communicate a specific type of message:

With Button

You can add an action button to provide users with a direct way to respond:

Implementation Example

Here's how to implement Feedback components in your application:

Best Practices

When using the Feedback component:
  • Be specific: Provide clear, concise messages that explain what happened
  • Suggest actions: When appropriate, tell users what they can do next
  • Use appropriate variants: Choose the right variant based on the message type
  • Position strategically: Place feedback where users will notice it without disrupting their workflow
  • Allow dismissal: For non-critical messages, provide a way to dismiss the feedback
The Feedback component helps create a better user experience by providing timely, relevant information in a consistent format.
Edit this page on GitHub
TrademarkTrademark
Launch your docs with Once UI
Social
GitHub