Xzero UI
Pro library

Feedback boardPro

A feature request board with a submit form that finds similar requests, upvotes, top and new sorting, status filters, and comments.

$ pnpm dlx shadcn@4.23.0 add @xzero-ui-pro/feedback-board
Live · keyboard ready

Use this to collect and rank feature requests. Save new requests with onSubmit, votes with onVote and comments with onComment, and set each status from your own admin tools.

When to use

When not to use

Installation

Register both Xzero UI namespaces in your project's components.json:

{
  "registries": {
    "@xzero-ui": "https://mcp.xzero.co.uk/r/{name}.json",
    "@xzero-ui-pro": "https://mcp.xzero.co.uk/r/pro/{name}.json"
  }
}
npx shadcn@4.23.0 add @xzero-ui-pro/feedback-board

Install xzero-foundation once, and import @/components/xzero/foundation.css in your app root. No Xzero token is used by this snapshot. For sample portraits, photos, fonts, or logos, download https://mcp.xzero.co.uk/install-assets.mjs and run node xzero-install-assets.mjs <receiving-project>.

Usage

import { FeedbackBoard } from "@/components/xzero/blocks/feedback-board/feedback-board";

export function FeedbackPage({ requests, user }) {
  return (
    <FeedbackBoard
      defaultRequests={requests}
      currentUser={{ name: user.name, avatar: user.avatar }}
      onSubmit={draft => createRequest(draft)}
      onVote={(id, voted) => vote(id, voted)}
      onComment={(id, text) => comment(id, text)}
    />
  );
}

API reference

FeedbackBoard

A feature request board: post an idea, upvote with a rolling count, sort by top or new, filter by status, and expand a request in place to read and add comments. While a title is typed, similar requests appear so people vote instead of posting duplicates.

PropTypeDefaultDescription
requestsFeedbackRequest[]–Controlled requests. Pair with onRequestsChange.
defaultRequestsFeedbackRequest[]sample requestsInitial requests when uncontrolled.
onRequestsChange(requests: FeedbackRequest[]) => void–Called with the full list after a vote, a new request, or a comment.
onVote(id: string, voted: boolean) => void–Called after a vote is added or removed.
onSubmit(draft: { title, details, category }) => void–Called with a new request once the title passes validation. The author's vote is added automatically.
onComment(id: string, text: string) => void–Called when a comment is posted.
statuses{ id: FeedbackStatus; name: string }[]Under review, Planned, In progress, CompleteStatus names for filters and tags.
categoriesstring[]["Feature", "Integration", "Improvement"]Category choices in the form.
currentUser{ name: string; avatar?: string }{ name: "You" }Author of new requests and comments.
defaultSort"top" | "new""top"Initial sort.
titlestring"Feedback"Page heading.
classNamestring–Extra class on the root.

FeedbackRequest

PropTypeDefaultDescription
id, title, details, category (required)string–Request content.
status (required)"review" | "planned" | "progress" | "done"–Shown as a dot and label; filterable.
votes (required)number–Vote count.
votedboolean–Whether the current visitor voted.
author (required){ name, avatar? }–Who posted it.
at, created (required)string, number–Display time and a sort key for New (higher is newer).
comments (required){ id, author, text, at, team? }[]–Comments. team marks replies from your team with a Team tag.

Keyboard interactions

KeysAction
TabMove through New request, status filters, sort, and each request's vote and title.
Enter / SpaceToggle a vote, expand a request, or pick a filter.
Arrow left / Arrow rightSwitch between Top and New.
EscapeClose the new request form.

Accessibility

Motion

Responsive behavior

Performance

Notes for AI

Guidance for AI tools

Blocks are complete, self-contained screens with sample data. Replace the sample data and connect the callbacks described above. Follow the declared prop types and do not invent props. Keep keyboard access, reduced motion support, and both light and dark themes intact when adapting it.

Full library index: https://ui.xzero.co.uk/llms.txt

Browse all components