@@ -484,6 +484,30 @@ class Path(BaseHTML):
484484 d : Var [str | int | float ]
485485
486486
487+ class G (BaseHTML ):
488+ """The SVG g component, used to group other SVG elements."""
489+
490+ tag = "g"
491+
492+ # The fill color of the group.
493+ fill : Var [str | Color ]
494+
495+ # The fill opacity of the group.
496+ fill_opacity : Var [str | int | float ]
497+
498+ # The stroke color of the group.
499+ stroke : Var [str | Color ]
500+
501+ # The stroke opacity of the group.
502+ stroke_opacity : Var [str | int | float ]
503+
504+ # The stroke width of the group.
505+ stroke_width : Var [str | int | float ]
506+
507+ # The transform applied to the group.
508+ transform : Var [str ]
509+
510+
487511class SVG (ComponentNamespace ):
488512 """SVG component namespace."""
489513
@@ -498,6 +522,7 @@ class SVG(ComponentNamespace):
498522 linear_gradient = staticmethod (LinearGradient .create )
499523 radial_gradient = staticmethod (RadialGradient .create )
500524 defs = staticmethod (Defs .create )
525+ g = staticmethod (G .create )
501526 __call__ = staticmethod (Svg .create )
502527
503528
@@ -512,6 +537,7 @@ class SVG(ComponentNamespace):
512537linear_gradient = LinearGradient .create
513538radial_gradient = RadialGradient .create
514539defs = Defs .create
540+ g = G .create
515541area = Area .create
516542audio = Audio .create
517543image = img = Img .create
0 commit comments