Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified src/pages/assets/sidenav.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/pages/assets/sitewidebanner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/pages/assets/topnav.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/pages/assets/topnav_dropdown.png
Binary file not shown.
42 changes: 0 additions & 42 deletions src/pages/blocks/accordion/accordion-basic.md

This file was deleted.

124 changes: 0 additions & 124 deletions src/pages/blocks/accordion/accordion-with-table-and-code.md

This file was deleted.

80 changes: 63 additions & 17 deletions src/pages/blocks/accordion/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,80 @@ description: Learn how to use the Accordion block to create collapsible content

# Accordion Block

Create collapsible content sections to organize information. Each accordion item can be expanded or collapsed individually.
Collapsible content sections.

## Syntax

```markdown
<AccordionItem header="Section heading">
<AccordionItem slots="heading, text"/>

Content goes here.
### Section heading

</AccordionItem>
Content goes here.
```

## Parameters

- **header**: Title/header of the accordion item (required)
- **slots**: Content structure
- `"heading, text"`: Basic text content
- `"heading, text, table"`: Include tables
- `"heading, text, code"`: Include code blocks
- **slots**: Content types
- `"heading, text"` - Text only
- `"heading, text, table"` - With tables
- `"heading, text, code"` - With code blocks
- Mix and match as needed

## Examples

### Basic Accordion

<AccordionItem slots="heading, text"/>

#### What is this accordion component?

This is a collapsible content section that can expand and collapse when users click on the heading. It's useful for organizing large amounts of information in a compact, user-friendly way.

<AccordionItem slots="heading, text"/>

#### How does it work?

The accordion component allows you to hide and show content dynamically. When a user clicks on a heading, the corresponding content panel toggles between visible and hidden states.

<AccordionItem slots="heading, text"/>

#### Can I use multiple accordions?

Yes, you can include as many accordion items as needed on a single page. Each item operates independently, allowing users to expand or collapse sections based on their interests.

### With Table and Code

<AccordionItem slots="heading, table, text, code"/>

#### 1. Initial Setup

| Step | Description | Duration | Status | Endpoint |
| --- | --- | --- | --- | --- |
| 1 | User initiates the process and the system begins loading resources | 0s | Starting | `/api/initialize` |

This action represents the beginning of a workflow. The system state transitions from idle to active.

```json
{
"eventType": "process.start",
"timestamp": "2024-01-15T10:00:00.000Z",
"data": {
"sessionId": "abc123",
"config": {
"name": "Sample Process",
"timeout": 60
}
}
}
```

## Variants
<AccordionItem slots="heading, table, text"/>

- [Basic Accordion](accordion-basic.md) - Simple collapsible text sections
- [Accordion with Table and Code](accordion-with-table-and-code.md) - Complex content with tables and code
#### 2. Status Check

## Best Practices
| Step | Description | Duration | Status | Endpoint |
| --- | --- | --- | --- | --- |
| 3 | Periodic status update is transmitted | 10s | Active | `/api/heartbeat` |

- Use clear, descriptive headings
- Keep individual sections focused
- Group related information together
- Place most important content in first item
A routine status signal is sent to maintain the connection and confirm system health.
27 changes: 0 additions & 27 deletions src/pages/blocks/announcement/announcement-button-only.md

This file was deleted.

52 changes: 0 additions & 52 deletions src/pages/blocks/announcement/announcement-with-heading.md

This file was deleted.

Loading