# RibbonLayoutMode Type

> RibbonLayoutMode type alias in the TX Sheet Control TypeScript API for the browser, with its syntax and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > RibbonLayoutMode Type
- **309 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonlayoutmode/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonlayoutmode/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonlayoutmode/llms-full.txt

---

Classic is the default density. Compact displays a curated single command row; each group menu retains the complete existing controls. Narrow hosts can scroll commands horizontally.

### Syntax

```typescript
type RibbonLayoutMode = 'classic' | 'compact';
```

### Examples

Use a mounted editor to configure the commands available for editing a report.

```typescript
import { Spreadsheet } from '@txtextcontrol/tx-sheet-control';

function configureEditor(host: HTMLElement) {
    const editor = new Spreadsheet(host, {
        license: 'YOUR_SIGNED_LICENSE',
        height: 600,
        fontCatalogURL: '/assets/sheet/fonts/catalog.json',
    });
    editor.ui.ribbon.layout = 'compact';
    return editor;
}
```

### See Also

- [RibbonApi](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonapi/llms-full.txt)

Replace `YOUR_SIGNED_LICENSE` with your issued Trial, Developer or OEM token before running the editor example.

---

## Nearby

- **Previous:** [RibbonItemOptions.visible Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonitemoptions/visible-property/llms-full.txt)
- **Next:** [RibbonDisplayMode Type](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbondisplaymode/llms-full.txt)
