From fcc71d81cb27ea3a5f7d5550785dfbff19690926 Mon Sep 17 00:00:00 2001 From: Pav Sidhu Date: Mon, 13 May 2024 12:02:00 +0200 Subject: [PATCH] fix: add hidden prop to Element component's types (#630) --- .changeset/olive-countries-approve.md | 5 +++++ packages/core/src/nodes/Element.tsx | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/olive-countries-approve.md diff --git a/.changeset/olive-countries-approve.md b/.changeset/olive-countries-approve.md new file mode 100644 index 000000000..647c5e6d4 --- /dev/null +++ b/.changeset/olive-countries-approve.md @@ -0,0 +1,5 @@ +--- +"@craftjs/core": patch +--- + +Add `hidden` prop to component's prop type diff --git a/packages/core/src/nodes/Element.tsx b/packages/core/src/nodes/Element.tsx index 11389b8a7..b53196f93 100644 --- a/packages/core/src/nodes/Element.tsx +++ b/packages/core/src/nodes/Element.tsx @@ -26,6 +26,7 @@ export type ElementProps = { custom?: Record; children?: React.ReactNode; canvas?: boolean; + hidden?: boolean; } & React.ComponentProps; export function Element({