> For the complete documentation index, see [llms.txt](https://ebay.gitbook.io/mindpatterns/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ebay.gitbook.io/mindpatterns/disclosure/pulldown-list.md).

# Pulldown List

![](/files/IK2AxZ3UySSkgyCLXGNh)

### Introduction

A toggle button at the end of a list that when activated will be "pulled down" to reveal more list items. The button can be toggled again, restoring the initial state of the list.&#x20;

Not to be confused with the HTML details element. They have slightly different behaviour. The button in a details element always remains in place and its label never changes. In a pulldown list, the button toggles both its place in the DOM and its label.

### Best Practices

Another variant of the Pulldown List is one in which the button is simply removed from the DOM after activation, i.e. there is no way to restore the list back to its initial state.

### Examples

Experience the pattern in action on our companion [eBay MIND Patterns examples website](https://opensource.ebay.com/mindpatterns/disclosure/pulldown-list).

### Interaction Design

This section provides interaction guidelines for keyboard, screen reader, and pointing devices.

#### General

Activating the button reveals new list items and moves the button to the end of these new items.

The button text toggles between "Show More" and "Show Less".&#x20;

#### Keyboard

Button is activated with **ENTER** or **SPACEBAR** key.

After "Show More" button is activated, keyboard focus is placed on the *first* new list item.

After "Show Less" button is activated, keyboard focus remains on the button.

#### Screenreader

If following WCAG 2.4.9, button should have additional [offscreen context](/mindpatterns/techniques/offscreen-text.md).

#### Pointer

There is no pointer specific interactions other than the general activation of the button.

### Developer Guide

This section is currently unavailable.

### ARIA Reference

#### **aria-label**

Can be used on the button to append additional context to assistive technology if following WCAG 2.4.9


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://ebay.gitbook.io/mindpatterns/disclosure/pulldown-list.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
