OpenKnowledge
Components

Toggle

Standalone expand/collapse block (Notion-style). Same render + props as `<Accordion>` — pick whichever vocabulary matches the vault

Example

Preview
Show me the detailsClick to expand

Native <details> under the hood — same substrate as the app render. Pass a shared name to sibling toggles and the browser will keep only one open at a time.

<Toggle title="Title">
  Body content revealed when the toggle is expanded.
</Toggle>

Props

Prop

Type

Also matches: toggle, collapsible, expand, details, disclosure, fold

Author it

Type /toggle in the editor to insert it from the slash menu, or write the tag directly in source mode. The Properties panel on the right of the editor exposes every prop above as a form field once the block is selected.

On this page

Product updates