Skip to content

Commit

Permalink
Merge pull request #374 from stephentuso/children-type
Browse files Browse the repository at this point in the history
fix(types): update MediaProps.children type
  • Loading branch information
damassi authored Feb 1, 2025
2 parents 3cee720 + 54507cf commit edd0305
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Media.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ export interface MediaProps<BreakpointKey, Interaction>
```
*
*/
children: any
children:
| React.ReactNode
| ((className: string, renderChildren: boolean) => React.ReactNode)

/**
* Additional classNames to passed down and applied to Media container
Expand Down

0 comments on commit edd0305

Please sign in to comment.