Skip to content

Commit

Permalink
fix(types): fix Grid.children to be React.ReactNode (uber#5188)
Browse files Browse the repository at this point in the history
Co-authored-by: Chase Starr <[email protected]>
  • Loading branch information
alexgorbatchev and chasestarr authored Oct 5, 2022
1 parent 4035d28 commit 44b4839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layout-grid/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export type GridProps = {
/** Grid container behavior beyond max width. Fluid will continue to expand. Fixed will limit grid container to max width and center the container horizontally within parent element. */
behavior?: Behavior;
/** Children should be Cells. */
children: React.ReactElement | React.ReactElement[];
children: React.ReactNode;
/** Gap on either side of grid container at each breakpoint. */
gridMargins?: Responsive<number>;
/** Maximum width of the grid container. Does not include Margins. Only applies when `behavior` is `fluid`. */
Expand Down

0 comments on commit 44b4839

Please sign in to comment.