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:
parent
b619ac3e08
commit
ca1893164d
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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*
|
||||
|
|
Loading…
Add table
Reference in a new issue