MRender
Introduction
What is MRender?
Getting Started
Writing
Markdown Extensions
Examples
Examples Overview
TOC Disabled
layout
TOC Disabled + Wide
layout
SEO Overrides
seo
Origin Link
seo
ng-component Demo
components
Code Group and Alerts
code
Code Features Playground
code
Preview Group Filters
components
MRender

Example: Preview Group Filters

This page demonstrates the top filters panel rendered for preview-group.

How it works

The filters row is not configured directly in markdown.

It is generated automatically when the referenced navigation items contain:

  • badge.text for filter categories
  • date for Sort by Newness

In this docs section, example pages are tagged with categories such as layout, seo, components, and code, so the panel can build filters from them automatically.

Markdown syntax

Use preview-group and reference one or more navigation groups by name:

If the referenced items have badges, a filters row appears above the cards.

Live demo

Examples

What to verify

  1. Filter chips are rendered above the preview cards.
  2. Categories are derived from the badges assigned to example pages.
  3. Selecting a filter hides cards from other categories.
  4. Sort by Newness reorders cards by navigation item date.
  5. Switching back to All restores the full set.

Configuration pattern

You enable this behavior through your navigation config, not through extra markdown options:

Notes

  • Filters are collected from navigation items in the current section.
  • The visible labels come from badge.text.
  • Sorting uses date; items without a date are treated as the oldest.
  • Preview cards look best when items also provide image, image_width, and image_height.
Edit this page on GitHub