Group()
const
Group: <T
,E
>(props
) =>null
|ReactElement
<unknown
,string
|JSXElementConstructor
<any
>>
This generic component allows for collective prop distribution to a collection of components of the same type
Type Parameters
T
T
E
E
extends Element
Parameters
props
BaseGroupProps
<T
, E
> & SlotProps
& RefAttributes
<HTMLDivElement
>
Returns
null
| ReactElement
<unknown
, string
| JSXElementConstructor
<any
>>
Example
A list of <Button />s and you want to control their size instead of passing the same props to each