Skip to content

Commit

Permalink
Add children prop to GroupRadius (Needed for React 19)
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-leamon committed May 21, 2024
1 parent a795fcb commit bfbc476
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
"version": "1.0.122",
"version": "1.0.123",
"description": "Formation is a comprehensive component library powered by React, Styled Components, and CSS variables for creating apps and websites that demand responsive, unified cross-platform experiences.",
"resolutions": {
"string-width": "^4",
Expand Down
4 changes: 3 additions & 1 deletion src/components/GroupRadius/GroupRadius.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import styled from 'styled-components'
*
* @component
* @param {boolean} [expand] - If true, the component will expand to fill the width of its container; otherwise, it will fit to the content width.
* @param {React.ReactNode} children - The child elements to be grouped within the container.
*
* @example
* // GroupRadius component with full width
Expand All @@ -27,6 +28,7 @@ import styled from 'styled-components'

export const GroupRadius = React.memo(styled.div<{
expand?: boolean
children: React.ReactNode
}>`
display: flex;
gap: 1px;
Expand All @@ -36,4 +38,4 @@ export const GroupRadius = React.memo(styled.div<{
* {
border-radius: 0 !important;
}
`)
`)

0 comments on commit bfbc476

Please sign in to comment.