1
1
import React , { forwardRef } from "@rbxts/react" ;
2
2
3
3
interface GroupProps extends React . PropsWithChildren {
4
- /**
5
- * The background transparency property exists purely for debugging
6
- * purposes. If you need a visible background, use a `Frame` instead.
7
- *
8
- * @ignore
9
- * @deprecated
10
- */
11
- readonly BackgroundTransparency ?: number ;
12
4
/** All the default properties of a `Frame` component. */
13
5
readonly Native ?: Partial < Omit < React . InstanceProps < Frame > , "BackgroundTransparency" > > ;
14
6
}
@@ -30,23 +22,20 @@ interface GroupProps extends React.PropsWithChildren {
30
22
*
31
23
* @component
32
24
*/
33
- const Group = forwardRef (
34
- ( { BackgroundTransparency, Native, children } : GroupProps , ref : React . Ref < Frame > ) => {
35
- const { AnchorPoint, Position, Size } = Native ?? { } ;
25
+ const Group = forwardRef ( ( { Native, children } : GroupProps , ref : React . Ref < Frame > ) => {
26
+ const { AnchorPoint, Position, Size } = Native ?? { } ;
36
27
37
- return (
38
- < frame
39
- ref = { ref }
40
- { ...Native }
41
- AnchorPoint = { AnchorPoint ?? new Vector2 ( 0.5 , 0.5 ) }
42
- BackgroundTransparency = { BackgroundTransparency ?? 1 }
43
- Position = { Position ?? new UDim2 ( 0.5 , 0 , 0.5 , 0 ) }
44
- Size = { Size ?? new UDim2 ( 1 , 0 , 1 , 0 ) }
45
- >
46
- { children }
47
- </ frame >
48
- ) ;
49
- } ,
50
- ) ;
28
+ return (
29
+ < frame
30
+ ref = { ref }
31
+ { ...Native }
32
+ AnchorPoint = { AnchorPoint ?? new Vector2 ( 0.5 , 0.5 ) }
33
+ Position = { Position ?? new UDim2 ( 0.5 , 0 , 0.5 , 0 ) }
34
+ Size = { Size ?? new UDim2 ( 1 , 0 , 1 , 0 ) }
35
+ >
36
+ { children }
37
+ </ frame >
38
+ ) ;
39
+ } ) ;
51
40
52
41
export default Group ;
0 commit comments