Etch component

Rating 1

Rating 1

Copy Rating 1

Configurator settings

Change a setting in the configurator to include it.

Optional. Copies the component under its own name, such as News Card Alpha for a site.

Documentation

A star rating from 0 to 5, which screen readers read as one label, such as "4.5 out of 5 stars".

How to use it

  • Set Rating to a number from 0 to 5.
  • Icon and Icon Half swap the full and the half star.

Good to know

  • The first digit sets the full stars, and any decimal adds a half star, so 4.2, 4.5 and 4.8 all show four and a half. Use whole numbers or .5 values, so the stars match what screen readers hear.
  • The stars take --warning-semi-light, through ACSS's --icon-color.

Reference

Read from the component's JSON, so it's always current.

Loading the reference