# PanelComponent

The surface of a screen. It holds your components and passes them the input.

```java
public class SettingsPanel extends PanelComponent {
    public SettingsPanel(Theme theme, Words words, int left, int top) {
        super(theme, words, left, top);
        add(new ToggleComponent(at(new Box("coords", 10, 10, 160, 12)), "Show coordinates", true, on -> { }));
    }

    @Override public int width() { return 180; }
    @Override public int height() { return 80; }
}
```

## Variants

- Sections

Page: https://minuit.dryaides.com/components/panel.html
