# Layout

The optional layout option defines, which layout is used for rendering the library. It accepts an object, with the following layout configuration options:

### Type definition

```
type LayoutConfig = {
  assetOrientation?: Orientation;
  breakpoints?: number[];
  view?: 'grid' | 'list' | 'slider';
};
```

### Asset orientation

The assetOrientation option defines whether assets should be rendered in portrait or landscape format.

```
window.LiSA.library.configs.push({
  layout: {
    assetOrientation: 'landscape',
  },
});
```

### Breakpoints

The breakpoints option allows you to define individual breakpoints for your responsive design. If not provided, LiSA Library defaults to the breakpoints described in Responsive design .

```
window.LiSA.library.configs.push({
  layout: {
    breakpoints: [480, 854],
  },
});
```

### View

The view option sets the library's layout. It accepts a string value that is one of the following:

list (Default) — A vertical show listing. grid — A grid view of all shows slider — Similar to the grid layout, except for keeping all shows of a section in a horizontal, scrollable row.

```
window.LiSA.library.configs.push({
  layout: {
    view 'grid',
  },
});
```


---

# 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://docs.hello-lisa.com/developers/widgets/configuration-options/layout.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.
