byDefaultHuman
Blocks

Feedback Form Block

An NPS and product feedback form combining Rating, Textarea, Input, Checkbox, and Button.

Share your feedback

How would you rate your experience?

Installation

package manager
npx shadcn add https://bydefaulthuman.fun/r/feedback-form.json

Props

PropTypeDefaultDescription
emailLabel
string
Email field label.
emailPlaceholder
string
Email input placeholder.
messageLabel
string
Textarea label.
messagePlaceholder
string
Textarea placeholder.
onSubmit
(data: FeedbackData) => void | Promise<void>
Callback fired when the form submits.
ratingLabel
string
Label shown above the rating input.
ratingLabels
string[]
Labels matched to rating values.
submitLabel
string
Submit button text.
subscribeLabel
string
Checkbox label.
successBody
string
Body copy shown after submit.
successTitle
string
Title shown after submit.
title
string
Block heading text.

Accessibility

This block is composed from accessible byDefaultHuman components. Preserve visible labels, button text, and supporting copy when adapting it so the layout remains understandable without the visual styling.

Examples

import { FeedbackFormBlock } from "@/components/block/FeedbackFormBlock";

<FeedbackFormBlock />;