Use #allowed_icon_pack with UI Patterns 2

Created on 20 November 2024, 5 months ago

Problem/Motivation

It is possible to constrain which icon packs are allowed in a icon prop, by using enum JSON schema property:

    icon:
      title: Icon
      description: "Available button icons"
      $ref: ui-patterns://icon
      properties:
        pack_id:
          enum:
           - dsfr

Proposed resolution

So let's use it in IconSource

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇫🇷France pdureau Paris

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