Skip to content

Group

This component generates a group field to be used in the author dialog. It groups multiple fields together for better organization. The group field’s value is passed to the component as a prop object.

Properties

PropertyTypeDescriptionDefault ValueRequired
labelstringThe label of the group componentYes
childrenobjectThe children item schemaYes
tooltipstringTooltip text for the group fieldNo
togglebooleanWhether to show a toggle for the groupfalseNo

Example

To use a group component in the author dialog, we can use the following code:

{
group: group({
label: 'Group Example',
toggle: true,
children:
object({
title: text({
label: 'Title',
placeholder: 'Enter a title',
}),
description: text({
label: 'Description',
placeholder: 'Enter a description',
}),
}),
});
}

Example in author dialog

Group Component Group Component