# Feedback & Communication / Rate Experience Rate your service experience with a 5-star rating scale and optional detailed feedback. **Category:** Patterns **Storybook:** https://doc.ux4g.gov.in/web/?path=/story/ux4g-patterns-feedback-communication-rate-experience--introduction ## Pattern variants - Rate Experience: https://doc.ux4g.gov.in/web/?path=/story/ux4g-patterns-feedback-communication-rate-experience--rate-experience ## When to use this pattern Use Feedback & Communication / Rate Experience when building citizen-facing flows that match the described government journey. Combine components such as cards, forms, tables, buttons, and status indicators as shown in Storybook. ## Framework setup ### HTML / CDN ```html ``` ### React ```bash npm install ux4g-web-components ``` ```jsx import 'ux4g-web-components/styles.css'; import 'ux4g-web-components/design-system'; ``` ### Angular Update `angular.json`: ```json { "styles": [ "node_modules/ux4g-web-components/styles/ux4g.css", "src/styles.css" ], "scripts": [ "node_modules/ux4g-web-components/dist/runtime/design-system.js" ] } ``` ## Code examples The snippets below are extracted from the Storybook canvas for Feedback & Communication / Rate Experience. Each example shows the rendered HTML, the equivalent React JSX, and the Angular template markup. ### 1. Introduction — Introduction HTML: ```html
Patterns

Rate Experience

Rate your service experience with a 5-star rating scale and optional detailed feedback.

star

Rate Experience

Service experience rating with 5-star scale and optional detailed feedback.

``` React: ```jsx import React from 'react'; const FeedbackCommunicationRateExperienceExample1Demo = () => ( <>
Patterns

Rate Experience

Rate your service experience with a 5-star rating scale and optional detailed feedback.

star

Rate Experience

Service experience rating with 5-star scale and optional detailed feedback.

); export default FeedbackCommunicationRateExperienceExample1Demo; ``` Angular: ```html
Patterns

Rate Experience

Rate your service experience with a 5-star rating scale and optional detailed feedback.

star

Rate Experience

Service experience rating with 5-star scale and optional detailed feedback.

``` ### 2. Rate Experience — Rate Experience HTML: ```html

Rate your experience

star star star star star
``` React: ```jsx import React from 'react'; const FeedbackCommunicationRateExperienceExample2Demo = () => ( <>

Rate your experience

star star star star star
{/* Footer Branding */}
Powered by -
); export default FeedbackCommunicationRateExperienceExample2Demo; ``` Angular: ```html

Rate your experience

star star star star star
```