For AI agents: the complete documentation index is available at https://wallarm.github.io/design-system/llms.txt, the full documentation bundle is available at https://wallarm.github.io/design-system/llms-full.txt, and this page is available as Markdown at https://wallarm.github.io/design-system/components/feedback-pulse.md.

FeedbackPulse

Asks one question in place, for measuring how a change landed without sending the reader to a survey. It is deliberately small and skippable: one question, an optional comment, and a timeout that dismisses it if the reader ignores it.

Source ยท Storybook

Usage

import { Button } from '@wallarm-org/design-system/Button';
import { FeedbackPulse } from '@wallarm-org/design-system/FeedbackPulse';

Examples

Rating

The rating scale on its own. Keep the question to something a single scale can honestly answer.

import { FeedbackPulse } from '@wallarm-org/design-system/FeedbackPulse';

export const Rating = () => (
  <div style={{ minHeight: '100vh' }}>
    <FeedbackPulse
      open
      onOpenChange={onOpenChange}
      onSubmit={onSubmit}
      data-testid='feedback-pulse'
    />
  </div>
);

Open in Storybook

Props

PropTypeDefaultDescription
open *boolean
onOpenChange *(open: boolean, reason?: FeedbackPulseCloseReason | undefined) => void
onSubmit *(result: { score: number; comment?: string | undefined; }) => void
questionstring | undefinedDEFAULT_QUESTION
scaleLabelsreadonly [string, string] | undefinedDEFAULT_LABELS
showCommentboolean | undefinedtrue
dismissDurationnumber | undefinedDEFAULT_DISMISS_MS
confirmationTextstring | undefinedDEFAULT_CONFIRMATION
data-testidstring | undefined