What Are Toggles?
A toggle is a collapsible block that can hide or show its nested content. Think of it like an accordion or dropdown section – you can click to expand and see what’s inside, or collapse it to save space. Toggles are perfect for:- Hiding detailed information that’s not always needed
- Creating FAQ-style documents
- Keeping reference material accessible but out of the way
- Managing long documents with many sections
- Creating cleaner presentations and shared documents
Creating a Toggle
There are several ways to create a toggle in Craft:Using the Slash Menu
Using the Markdown Shortcut
If you prefer to keep your hands on the keyboard, you can turn a block into a toggle as you type: The block instantly becomes a toggle, and the+ characters are removed. Type your toggle title, then press Enter to add content inside.
Converting Existing Content
You can turn any block with nested content into a toggle:
The block becomes a toggle with all its nested content hidden by default.
Expanding and Collapsing Toggles
To expand a toggle: Click the arrow icon (▶) next to the toggle title. The arrow rotates down (▼) and the content appears. To collapse a toggle: Click the arrow icon again to hide the content.- Turn the current block into a toggle:
Cmd+Option+7(macOS) orCtrl+Shift+7(Windows) - Expand or collapse every toggle in the document at once:
Cmd+Option+T(macOS) orCtrl+Alt+T(Windows)
Working with Nested Toggles
Toggles can contain other toggles, creating multiple levels of collapsible content. This is useful for creating hierarchical information structures:Tips and Best Practices
- Use descriptive titles. The title is the only part that’s always visible, so make it clear what’s inside.
- Don’t overuse them. Too many toggles can make a document feel like a maze. Save them for genuinely optional content.
- Think about what’s visible when sharing. Important information should be readable without extra clicks.
- Combine with other features. Toggles work well alongside cards, lists, and headers to structure a document.
Converting Back to Regular Blocks
If you decide you don’t want a toggle anymore:
The content will remain but will always be visible.
When to Use Toggles
Reach for a toggle when you want content hidden but quickly accessible in the same view, such as optional or reference material, FAQ answers, or supporting detail. A few common patterns:- Meeting notes: agenda items stay visible, discussion notes tuck into toggles
- Project docs: the overview is always visible, technical details sit in toggles
- Learning materials: questions are visible, answers stay hidden until needed
Blocks and Pages
Understanding Craft’s structure
Document Styling
Format and style your content
Collections
Database-like features for structured data