Appearance
Function: thumbsFeedback()
ts
function thumbsFeedback(props: ThumbsFeedbackBlockProps): Element;Defined in: src/UI/blocks/thumbsFeedback.tsx:99
Creates a thumbs feedback component for displaying dismiss, thumbs up/down buttons.
Parameters
| Parameter | Type | Description |
|---|---|---|
props | ThumbsFeedbackBlockProps | Configuration object |
Returns
Element
A JSX element representing the thumbs feedback component
Example
Basic usage
thumbsFeedback({
name: 'userRating',
onDismissClick: () => console.log('User dismissed'),
onThumbsUpClick: () => console.log('User liked it!'),
onThumbsDownClick: () => console.log('User disliked it!'),
});