> ## Documentation Index
> Fetch the complete documentation index at: https://calcs.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Section Widget

> Create section headers and organize content in templates

The Section Widget displays section titles and organizes content into logical groups. Section widgets are always visible to the end user.

<Warning>
  **Summary widgets MUST be the first widget created in every sheet**
</Warning>

## Example Code

```json theme={null}
{
  "type": "sheetTemplateWidgets",
  "attributes": {
    "type": "section",
    "label": "",
    "referenceId": "",
    "collapsed": false,
    "visibleIf": null,
    "description": null,
    "references": null,
    "authorNotes": null,
    "referenceImage": null
  }
}
```

## Parameters

<ParamField path="type" type="string" required>
  Must be "section" - defines the widget type
</ParamField>

<ParamField path="label" type="string" required>
  The name of the widget, shows up as the section title
</ParamField>

<ParamField path="referenceId" type="string" required>
  Unique reference ID of the widget
</ParamField>

<ParamField path="collapsed" type="boolean" default="false">
  Whether the section is collapsible, and if so, it will begin as collapsed
</ParamField>

<ParamField path="visibleIf" type="string (equation)" default="true">
  An equation that must result in true/false and can hide the widget if certain conditions are met
</ParamField>

<ParamField path="description" type="string">
  Description of section (not currently displayed, but will be in future)
</ParamField>

<ParamField path="references" type="string" required>
  Relevant code or standard reference for the section
</ParamField>

<ParamField path="authorNotes" type="string">
  Make notes relevant to internal development here; this will never be displayed publicly
</ParamField>

<ParamField path="referenceImage" type="string (image dataURI)">
  Any image specifically relevant to the widget
</ParamField>

## Best Practices

<Tip>
  * Use descriptive section labels that clearly indicate the content within
  * Include relevant code references in the `references` field
  * Consider using collapsed sections for advanced or less commonly used options
  * Always create a Summary section as the first widget in every sheet
</Tip>
