Response feedback preview
Collect response-specific ratings, reasons and optional comments through a native form.
pro · Feedback · composite
When to use
- Use it when a page needs collect response-specific ratings, reasons and optional comments through a native form.
- Choose it when the host application can supply the required state and keep business logic outside the presentation component.
Alternatives
- Choose alert instead when inline notices with icons, actions and optional dismissal is the actual interface need, rather than response feedback.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/response-feedbackImport components/ui/tidal.css, components/ui/response-feedback.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/response-feedback.css";
import{TidalResponseFeedback}from"./components/ui/response-feedback";
export default(p:Parameters<typeof TidalResponseFeedback>[0])=><div className="tidal-scope"><TidalResponseFeedback {...p}/></div>;API and props
TidalResponseFeedback.choice (required)TidalFeedbackChoice | nullRequired choice value accepted by this exported component.
TidalResponseFeedback.comment (required)stringRequired comment value accepted by this exported component.
TidalResponseFeedback.onChoiceChange (required)(choice: TidalFeedbackChoice, event: MouseEvent<HTMLButtonElement>) => voidCallback invoked when the choice change interaction is proposed.
TidalResponseFeedback.onCommentChange (required)(comment: string) => voidCallback invoked when the comment change interaction is proposed.
TidalResponseFeedback.onReasonsChange (required)(reasons: readonly string[]) => voidCallback invoked when the reasons change interaction is proposed.
TidalResponseFeedback.reasons (required)ReadonlyArray<TidalFeedbackReason>Required reasons value accepted by this exported component.
TidalResponseFeedback.selectedReasons (required)ReadonlyArray<string>Required selected reasons value accepted by this exported component.
TidalResponseFeedback.choiceProps((choice: TidalFeedbackChoice) => ButtonProps) | undefinedOptional choice props value accepted by this exported component.
TidalResponseFeedback.disabledboolean | undefinedOptional disabled value accepted by this exported component.
TidalResponseFeedback.errorReactNodeOptional error value accepted by this exported component.
TidalResponseFeedback.labelsPartial<{ helpful: string; unhelpful: string; reasons: string; comment: string; submit: string; pending: string; invalid: string; helpfulHint: string; unhelpfulHint: string; }> | undefinedOptional labels value accepted by this exported component.
TidalResponseFeedback.onSubmit((event: FormEvent<HTMLFormElement>) => void) | undefinedCallback invoked when the submit interaction is proposed.
TidalResponseFeedback.pendingboolean | undefinedOptional pending value accepted by this exported component.
TidalResponseFeedback.submitPropsButtonProps | undefinedOptional submit props value accepted by this exported component.
TidalResponseFeedback.successReactNodeOptional success value accepted by this exported component.
TidalResponseFeedback.textareaPropsOmit<Omit<DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref">, "disabled" | "form" | "name" | "value" | "defaultValue" | "id" | "role" | "aria-disabled" | "aria-label" | "aria-labelledby" | "aria-readonly" | "children" | "dangerouslySetInnerHTML" | "onChange" | "onInput"> | undefinedOptional textarea props value accepted by this exported component.
TidalResponseFeedback.textareaRefRef<HTMLTextAreaElement> | undefinedOptional textarea ref value accepted by this exported component.
TidalResponseFeedback.titleReactNodeOptional title value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- Install the declared registry dependencies and render inside a tidal-scope with the foundation stylesheet loaded.