Blockquote - React
import { Blockquote } from '@sky-uk/ui-core';
The Blockquote component is used for testimonials or product ratings.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| $appearance | 'light' | 'default' | undefined | undefined | The $appearance prop sets tab styles for various backgrounds, including a light version for dark backgrounds. |
| author | string | undefined | The author for the Blockquote |
| image | object (Image props) | undefined | The image for the Blockquote |
| link | object (Link props) | undefined | The link to the source of the review |
| rating | number | undefined | The rating /5 of the review |
| source | string | undefined | The source of the Blockquote |
Citation source as a link
Providing a href prop wraps the citation in an inline link.
Citation source image
Providing an image for the citation source such as a brand logo.
Rating
You can provide a rating of 1 to 5 stars.
Light variant
Use $appearance to alternate between default and light to provide contrast on shaded backgrounds.
System Modifiers
This component also supports the props applied using the following system modifiers:
Translatable Fields
This component supports translation on the fields related to the rating:
blockquotes.rating- sets the hidden text used on the rating element, defaultrating.blockquotes.stars- sets the hidden text used on the stars of the rating, defaultstars.
For more on translatable fields, view the useTranslation docs here: useTranslation