# $endSection

`$endSection` **closes the section** opened with `$addSection[]`. A section stays open until a separator, a select menu, a container or another section; a text display written after it would join the section (a section holds 1 to 3 texts). With `$endSection`, the next text display stands on its own.

## Syntax

```text
$endSection
```

## Return value

Returns an empty string. It adds no component.

## Examples

```bdfd
$addContainer[;#5865F2]
$addSection[]
$addTextDisplay[**Setting**⏎-# Current value]
$addSectionButton[edit;Edit;secondary]
$endSection
$addTextDisplay[-# Page 1 / 2]
```

## Notes

See also `$addSection[]`, `$addSectionButton[]`.
