Matterway
    Preparing search index...

    Function thumbsFeedback

    • Creates a thumbs feedback component for displaying dismiss, thumbs up/down buttons.

      Parameters

      • props: ThumbsFeedbackBlockProps

        Configuration object

        Thumbs feedback component for user feedback collection. Displays two buttons (thumbs up and thumbs down) that users can click to provide feedback.

        • Optionalresolve?: boolean

          Whether the component should resolve the UI when a button is clicked. Defaults to true.

        • Optionalname?: string

          Optional name for state management

        • OptionalonDismissClick?: () => void

          Callback when dismiss is clicked

        • OptionalonThumbsUpClick?: () => void

          Callback when thumbs up is clicked

        • OptionalonThumbsDownClick?: () => void

          Callback when thumbs down is clicked

        • Optionaldisabled?: boolean

          Whether the component is disabled

        • OptionalclassName?: string

          Custom CSS class name

        • OptionalbuttonTexts?: { dismiss?: string }

          Button texts

      Returns Element

      A JSX element representing the thumbs feedback component

      Basic usage

      thumbsFeedback({
      name: 'userRating',
      onDismissClick: () => console.log('User dismissed'),
      onThumbsUpClick: () => console.log('User liked it!'),
      onThumbsDownClick: () => console.log('User disliked it!'),
      });