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.

eds-feedback Open in Storybook

See It in Use with Code

Check out this practical implementation of component.

Plain HTML

In React

In Vue

Properties

PropertyAttributeDescriptionTypeDefault
countcountNumber of stars in the rating system.number5
descriptiondescriptionOptional supporting text under the heading; nothing is rendered when empty.string''
headingLevelheading-levelThe HTML heading level to use for the label. Valid values: ‘h1’ - ‘h5’."h1" | "h2" | "h3" | "h4" | "h5"'h1'
labellabelHeading shown above the rating.string'How was your experience?'
textMappingtext-mappingMapping of text to star ratings.string | string[]['Very poor', 'Poor', 'Average', 'Good', 'Excellent']
typetypeThe type of icon to display. Can be “stars” or “thumbs”."star" | "thumbs-down" | "thumbs-up"'star'

Events

EventDescriptionType
ratingEvent 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