Component libraryResponse feedback
Components/Feedback

Response feedback

Pro

Collect response-specific ratings, reasons and optional comments through a native form.

npx shadcn@latest add @tidal-pro/response-feedback
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/response-feedback

Import components/ui/tidal.css, components/ui/response-feedback.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

Controlled helpful/unhelpful/null choice, known unique reason IDs and exact comment string. Choice buttons preserve caller-first unprevented clicks. Unhelpful shows native checkboxes; helpful omits stale reason fields. Native form serializes feedback, repeated reason and comment fields, supports native action/method or an onSubmit consumer callback, and blocks invalid, disabled, pending or already-successful submissions. Optional success/error content, native textarea props/ref, native form ref, localized labels and button props are supported. Pending and disabled state applies to all fields/actions. Hidden/removed submit controls recover focus to the form only while source/body owns it. Light/dark neutral tokens,44px targets,16px phone editing,RTL and reduced-motion support. No feedback is sent, stored or persisted by the component; the demo explicitly keeps its result within the preview. Textarea id, role, ARIA availability and onInput channels are excluded and stripped; linked errors set aria-invalid. Native textarea readOnly remains supported. Disabled actions suppress consumer click handlers, and the sample Edit action restores form focus only from its removed source or body.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.