Add component in Enum CSS Widget

Created on 21 May 2025, about 1 month ago

Problem/Motivation

Building UI, Enum CSS Widget allow to build nice UI thanks to icons, but we could improve that allowing to directly use components.

For example, i use Enum CSS Widget to display all variants available so contributor can choose which one to use. First, i created screenshot of component and define an icon to use in widget. It works, but there are several cons :

  • I have to create a screenshot of all cases
  • If component, colors etc evolve, screenshot will be wrong
  • Cannot see effects like hover

But, if i can configure a component directly in my widget, i can show what the option is used for. In my case, i can define for each variant a component configured with this variant.

Widget in Enum CSS Widget :

Widget rendered in my form :

Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇫🇷France goz

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024