Camila Ortega
Clear lessons and useful exercises. I finished it in two weeks.
Components
A review with stars, author, relative date and text.
Clear lessons and useful exercises. I finished it in two weeks.
For course, product or service reviews. The date is relative and appears after mount, so the server and the client render the same HTML. Pass the review fields one by one (rating, author, date, text). The course page and the course and instructor quick views use it.
Props
Name | Type | Default | Description |
|---|---|---|---|
ratingrequired | number | — | The stars, from 0 to 5. |
authorrequired | string | — | Who wrote the review. |
date | string | — | When it was written (an ISO date), shown as a relative time after mount. |
text | string | — | The review text. The default slot replaces it. |
Slots
Name | Slot props | Description |
|---|---|---|
#default | — | Replaces the review text. |