Collapsible blocks (toggles) let you expand or collapse sections of your doc. They help keep long documents clean, scannable, and easier to read.
Click the arrow next to a to collapse or expand its content.
You can keep a section collapsed or expanded by pressing Shift-Click
when hovering over its header.
Alternatively, you can click the four-dot menu next to the arrow and choose Keep this section collapsed/expanded
from the list that appears.
Keeping a section collapsed.
A section includes everything under a header until another header of the same level appears.
Example: A Heading 1 section includes all blocks below it (including H2, H3) until the next H1.
To manually stop a section earlier, insert a separator: ---
.
There are three ways to create a collapsible block:
- Select a block of text and choose
Collapsible Block
from the command toolbar. - Type
>>
at the beginning of a block. - Type
/Collapsible Block
in the editor.
Turning an existing block into a collapsible block.
Once you've created a collapsible block, you can collapse or expand it by clicking the arrow in front it, just like you would with a header.
Click the arrow next to the block to collapse or expand it.
To add content to an existing collapsible block, press Return
and start typing.
You can add other types of blocks within a collapsible block, such as bulleted lists, numbered lists, or even images.
Collapsible blocks can be nested within each other.
To exit a collapsible block, go to its last line, then press Return
.
Press Return once you've reached the last line of the collapsible block to exit it.