Skip to content

Commit

Permalink
fix: add hidden prop to Element component's types (#630)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavsidhu authored May 13, 2024
1 parent 4dcd6a2 commit fcc71d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/olive-countries-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@craftjs/core": patch
---

Add `hidden` prop to <Element /> component's prop type
1 change: 1 addition & 0 deletions packages/core/src/nodes/Element.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export type ElementProps<T extends React.ElementType> = {
custom?: Record<string, any>;
children?: React.ReactNode;
canvas?: boolean;
hidden?: boolean;
} & React.ComponentProps<T>;

export function Element<T extends React.ElementType>({
Expand Down

0 comments on commit fcc71d8

Please sign in to comment.