Skip to main content

Group()

Group<T, E>(props): null | ReactElement

This generic component allows for collective prop distribution to a collection of components of the same type

Type Parameters

T

E extends Element

Parameters

props

BaseGroupProps<T, E> & SlotProps & RefAttributes<HTMLDivElement>

Returns

null | ReactElement

Example

A list of <Button />s and you want to control their size instead of passing the same props to each