EccGroup
EccGroup is a labelled group of fields inside a panel. With collapsible a click on the label folds the group.
TSX
import { EccGroup } from "@/ecc/components/forms/EccGroup";
Example
TSX
<EccGroup label="Requester" collapsible initState="close">
<EccText fieldLabel="Cost center" value="inputs.purchase.requesterCostCenter" data={task} />
</EccGroup>
Ecc components in this example: EccText - how to use them is described in UI Components.
Behaviour
- A collapsible group shows a chevron before the label (right when closed, down when open).
- A closed group does not render its content.
Props
Prop
Type
Default
Description
|
| - | label of the group (required) |
|
|
| can be collapsed |
|
|
| state when the page opens, only with |
Related
Page
Relation
overview of all layout components | |
the box a group usually sits in | |
arranges the fields inside the group |
Was this section helpful?
On this page
- EccGroup