Skip to content

Commit

Permalink
fix: change Box/Menu children types to ElementContent (#1839)
Browse files Browse the repository at this point in the history
  • Loading branch information
talkor authored Dec 21, 2023
1 parent 2576104 commit 05145be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Box/Box.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { forwardRef, ReactElement, useRef } from "react";
import React, { forwardRef, useRef } from "react";
import cx from "classnames";
import useMergeRef from "../../hooks/useMergeRef";
import {
Expand Down Expand Up @@ -44,12 +44,12 @@ import {
Shadow,
DISABLED
} from "./BoxConstants";
import { ValueOf, VibeComponent, VibeComponentProps, withStaticProps } from "../../types";
import { ValueOf, VibeComponent, VibeComponentProps, withStaticProps, ElementContent } from "../../types";
import styles from "./Box.module.scss";

interface BoxProps extends VibeComponentProps {
elementType?: keyof JSX.IntrinsicElements | string;
children?: ReactElement | ReactElement[];
children?: ElementContent;
disabled?: boolean;
border?: ValueOf<Border>;
borderColor?: ValueOf<BorderColor>;
Expand Down

0 comments on commit 05145be

Please sign in to comment.