# Side Panels 🧪

{% hint style="info" %}
Might move this to the Elements lib.&#x20;
{% endhint %}

The side-panel concept is;

* A container DIV, containing arbitrary content&#x20;
* Which has a tab piece
  * Typically e.g. 30px x 30px square and icon
* Breakpoint-aware, it only appears at certain breakpoints
* Clicking tab expands tray / collapses tray
* Interactions might collapse tray?  &#x20;
* Tabs are grouped in a panel,&#x20;
  * which can be set to sticky or fixed top
  * left / right / bottom / top
    * expansion direction
    * top right + offset ( left )
    * right top + offset ( down )
    * right middle + offset ( + / - )&#x20;
* Multiple panels for each side? &#x20;

Implementation;&#x20;

* At load,&#x20;
  * button sontainers are created
  * buttons are created
  * panels are created offscreen
  * GSAP wiring is done&#x20;
* At breakpoint, buttons are shown
  * clicking expands / contracts&#x20;

Use cases;

* ToC as in FS ToC
* Filter settings as in FS Filter
* Hours of operation
* Feedback form


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://attr.sygnal.com/sa5-modals/page-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
