mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 22:41:38 +02: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]
|
[:class {:optional true} :string]
|
||||||
[:id [:and :string [:fn #(contains? icon-list %)]]]
|
[:id [:and :string [:fn #(contains? icon-list %)]]]
|
||||||
[:size {:optional true}
|
[:size {:optional true}
|
||||||
[:enum "s" "m"]]])
|
[:maybe [:enum "s" "m"]]]])
|
||||||
|
|
||||||
(mf/defc icon*
|
(mf/defc icon*
|
||||||
{::mf/props :obj
|
{::mf/props :obj
|
||||||
|
|
|
@ -114,7 +114,7 @@
|
||||||
[:selected {:optional true} :string]
|
[:selected {:optional true} :string]
|
||||||
[:action-button {:optional true} some?]
|
[:action-button {:optional true} some?]
|
||||||
[:action-button-position {:optional true}
|
[:action-button-position {:optional true}
|
||||||
[:enum "start" "end"]]])
|
[:maybe [:enum "start" "end"]]]])
|
||||||
|
|
||||||
(mf/defc tab-switcher*
|
(mf/defc tab-switcher*
|
||||||
{::mf/props :obj
|
{::mf/props :obj
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
[:map
|
[:map
|
||||||
[:class {:optional true} :string]
|
[:class {:optional true} :string]
|
||||||
[:level {:optional true}
|
[:level {:optional true}
|
||||||
[:enum "info" "warning" "error" "success"]]
|
[:maybe [:enum "info" "warning" "error" "success"]]]
|
||||||
[:on-close {:optional true} fn?]])
|
[:on-close {:optional true} fn?]])
|
||||||
|
|
||||||
(mf/defc toast*
|
(mf/defc toast*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue