Skip to main content

<st-testimonials>

JSON type: Testimonials

Section heading plus customer quotes or stories. Port of React Testimonials.

Each card shows whatever its item has: a cover image, the customer logo, a story headline, a quote with star rating, result metrics, the author and a "See full story" link. layout="grid" (default) lays the cards out in a grid; layout="carousel" puts them on one horizontally scrolling, snapping row with previous/next buttons next to the heading — the customer-story carousel of enterprise marketing pages. action-label/action-href add a section-level link (e.g. "Explore customer stories"). Any item set can use the carousel: region-label names it for assistive technology (e.g. "Services") and role-description changes its aria-roledescription.

Usage​

import '@sankhyatronics/sankhya-cms/testimonials'; // registers <st-testimonials>

Properties​

PropertyAttributeTypeDefaultDescription
titletitlestring''
subtitlesubtitlestring''
items—TestimonialItem[][]
invertedinvertedbooleanfalse
layoutlayout'grid' | 'carousel''grid'grid (default) or carousel: one scrolling row with previous/next buttons.
linkLabellink-labelstring'See full story'Default text of each card's story link.
regionLabelregion-labelstring''Accessible name of the carousel's scrolling region. Default: the title, or "Stories". Set it to what the items are (e.g. "Services" for a row of service cards).
roleDescriptionrole-descriptionstring''aria-roledescription of the carousel's scrolling region. Default: "carousel".
actionLabelaction-labelstring''Section-level link text, e.g. "Explore customer stories".
actionHrefaction-hrefstring''

Events​

EventDetailDescription
testimonials-linkCancelable, before following a story or section link. Detail &#123; href &#125;.

See the live examples in Storybook.