0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-14 07:51:35 -05:00

Add the undefied option to props schema enums

This commit is contained in:
Eva Marco 2024-09-26 16:41:53 +02:00
parent b619ac3e08
commit ca1893164d
3 changed files with 3 additions and 3 deletions

View file

@ -282,7 +282,7 @@
[:class {:optional true} :string]
[:id [:and :string [:fn #(contains? icon-list %)]]]
[:size {:optional true}
[:enum "s" "m"]]])
[:maybe [:enum "s" "m"]]]])
(mf/defc icon*
{::mf/props :obj

View file

@ -114,7 +114,7 @@
[:selected {:optional true} :string]
[:action-button {:optional true} some?]
[:action-button-position {:optional true}
[:enum "start" "end"]]])
[:maybe [:enum "start" "end"]]]])
(mf/defc tab-switcher*
{::mf/props :obj

View file

@ -24,7 +24,7 @@
[:map
[:class {:optional true} :string]
[:level {:optional true}
[:enum "info" "warning" "error" "success"]]
[:maybe [:enum "info" "warning" "error" "success"]]]
[:on-close {:optional true} fn?]])
(mf/defc toast*