[2.0.0-beta2] Allow multiple previews for each pattern

Created on 15 May 2023, over 1 year ago
Updated 15 September 2024, 13 days ago

Problem/Motivation

As discussed in ๐ŸŒฑ [2.0.x] Update ui_patterns_library and rethink patterns previews Active we'd like to allow themers to define as many previews as they like for their patterns.

Proposed resolution

  • Declare previews in a separate section of the pattern.yml file OR even in a separate file.
  • Each preview has a machine name
  • Each preview can have a label (fallback to machine name either way)
  • Each preview can define the variant it uses (if empty, loop on each variants)
  • Each preview can set slots and props (if empty, let it be)
๐Ÿ“Œ Task
Status

Fixed

Version

2.0

Component

UI Patterns Library

Created by

๐Ÿ‡ซ๐Ÿ‡ทFrance duaelfr Montpellier, France

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024