Salla Docs
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipment API
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Change Log
Salla CLI
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipment API
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Change Log
Salla CLI
Salla - Opensource
Salla - Developers Community
  1. Elements
  • Overview
  • Usage
  • Components Customization
  • Elements
    • Apps Icons
    • Breadcrumb
    • Color Picker
    • Conditional Fields
    • Count Down
    • Filters
    • Infinite Scroll
    • List Tile
    • Loading
    • Map
    • Modal
    • Placeholder
    • Progress Bar
    • Rating Stars
    • Reviews
    • Reviews Summary
    • Sheet
    • Skeleton
    • Slider
    • Social
    • Social Share
    • Tabs
  • Form
    • Button
    • Bottom Alert
    • Contacts
    • Date Time Picker
    • File Upload
    • Menu
    • Quantity Input
    • Select
    • Tel Input
  • Product
    • Add Product
    • Advertisement
    • Comments
    • Conditional Offer
    • Gifting
    • Installment
    • Meta Data
    • Offer
    • Offer Modal
    • Orders
    • Payments
    • Product Availability
    • Product Card
    • Products List
    • Product Options
    • Product Size Guide
    • Products Slider
    • Quick Buy
    • Quick Order
    • Scopes
    • Search
  • User
    • Cart Summary
    • Localization
    • Login
    • Loyalty
    • Rating
    • User Menu
    • User Profile
    • User Settings
    • Verify
  1. Elements

Reviews

The <salla-reviews> web component displays a vertically scrollable reviews, which you can customize its data source using the properties available.
API Usage
Learn more about the Reviews API usage from here

Example#

Reviews Component

Usage#

HTML

Properties#

PropertyAttributeDescriptionTypeDefault
Display All Linkdisplay-all-linkControls the visibility of a link to the reviews page. When set to true, a link will be displayed allowing users to navigate to the reviews' section.booleanundefined
LimitlimitDefines the maximum number of reviews to retrieve from the API.number5
SourcesourceSpecifies the data source for reviews. Valid options include: • store: Retrieves reviews for the entire store.
• all: Retrieves reviews from all sources.
• categories: Retrieves reviews for specific product categories.
• products: Retrieves reviews for individual products.
• json: Retrieves reviews from a custom JSON payload.

📝 Note that when using json as the source, a valid payload must be provided in the sourceValue property.
"all" | "categories" | "json" | "products" | "store""store"
Source Valuesource-valueProvides the data specific to the chosen source. Required when using categories, products, or json as the source:
• categories: An array of category IDs.
• products: An array of product IDs.
• json: A custom JSON object containing the reviews' data.
(string | number)[] | number | object | stringundefined
Modified at 2024-10-27 09:24:48
Previous
Rating Stars
Next
Reviews Summary