Interactive testing environment for react-shared components
Current: Default
Course table of contents preview component showing modules and lessons with drip content indicators
View the component with sample course data
Different course preview scenarios
productobject - Course data with toc (table of contents) array containing module information
previewboolean - Preview mode flag (default: false)
usernamestring - Username (optional, currently unused)
isDemoboolean - Demo mode flag (optional, currently unused)
primaryColorstring - Primary color (optional, currently unused)
classNamestring - Additional CSS classes (optional)
The component displays up to 3 modules from the course table of contents. If there are more than 3 modules, it shows a "+ X more" indicator with a lock icon.
Modules can be marked with a drip flag. Non-drip modules show a play icon, while drip modules show a number (currently hardcoded as "7").
The component expects a product object with the following structure:
{
course: {
toc: [
{ title: "Module Title", drip: false },
// ... more modules
]
}
}The "+ X more" text uses the translation key shared.more for internationalization support.