eds-feedback
Explore the Interactive Component
Use the playground below to experiment with the component. Click the button to view the full Storybook deployment for additional examples and configurations.
See It in Use with Code
Check out this practical implementation of component.
Plain HTML
In React
In Vue
Properties
| Property | Attribute | Description | Type | Default |
|---|---|---|---|---|
count | count | Number of stars in the rating system. | number | 5 |
description | description | Optional supporting text under the heading; nothing is rendered when empty. | string | '' |
headingLevel | heading-level | The HTML heading level to use for the label. Valid values: ‘h1’ - ‘h5’. | "h1" | "h2" | "h3" | "h4" | "h5" | 'h1' |
label | label | Heading shown above the rating. | string | 'How was your experience?' |
textMapping | text-mapping | Mapping of text to star ratings. | string | string[] | ['Very poor', 'Poor', 'Average', 'Good', 'Excellent'] |
type | type | The type of icon to display. Can be “stars” or “thumbs”. | "star" | "thumbs-down" | "thumbs-up" | 'star' |
Events
| Event | Description | Type |
|---|---|---|
rating | Event emitted when the rating is changed. | CustomEvent<number> |
Dependencies
Depends on
Graph
graph TD; eds-feedback --> eds-rating eds-rating --> eds-input-label style eds-feedback fill:#f9f,stroke:#333,stroke-width:4px
Built with StencilJS