# Controls and panels styling

> Canonical URL: https://docs.mountaya.com/en/sdks/typescript/controls/styling/
> Rules for agents: https://docs.mountaya.com/llms.txt#rules-for-agents

The className and style seam of every element documented on Controls and panels, and the DOM attributes each one spreads.

How the elements on [Controls and panels](https://docs.mountaya.com/en/sdks/typescript/controls.md) are painted. Every element takes `className` and `style` on the same terms, alongside the icons and strings that [customizing the elements](https://docs.mountaya.com/en/sdks/typescript/customize.md) explains in full.

## MapControls

- `className` (string)
- `style` (ElementStyle)

### MapControls.Compass

- `className` (string)
- `style` (ElementStyle)

### MapControls.Directions

- `className` (string)
- `style` (ElementStyle)

### MapControls.Download

- `className` (string)
- `style` (ElementStyle)

### MapControls.Geolocate

- `className` (string)
- `style` (ElementStyle)

### MapControls.Panel

- `className` (string)
- `style` (ElementStyle)

### MapControls.Search

- `className` (string)
- `style` (ElementStyle)

### MapControls.StreetView

- `className` (string)
- `style` (ElementStyle)

### MapControls.Zoom

- `className` (string)
- `style` (ElementStyle)

## ZoomControl

- `className` (string)
- `style` (ElementStyle)

## CompassControl

- `className` (string)
- `style` (ElementStyle)

## CompassRose

- `className` (string)
- `style` (ElementStyle)

## GeolocateControl

- `className` (string)
- `style` (ElementStyle)

## PanelControl

- `className` (string)
- `style` (ElementStyle)

## DirectionsControl

- `className` (string)
- `style` (ElementStyle)

## DownloadControl

- `className` (string)
- `style` (ElementStyle)

## StreetViewControl

- `className` (string)
- `style` (ElementStyle)

## LayersPanel

- `className` (string)
- `style` (ElementStyle)

## PoiPanel

- `className` (string)
- `style` (ElementStyle)

## PreferencesPanel

- `className` (string)
- `style` (ElementStyle)

## ControlButton

- `className` (string)
- `style` (ElementStyle)

## ControlGroup

- `className` (string)
- `style` (ElementStyle)

## ControlTooltip

- `className` (string)
- `style` (ElementStyle)

## Glyph

- `className` (string): Restated rather than inherited, and `style` below with it.Both arrive through the `<svg>` props this extends, so neither line changes the type. They are written out because these two are the placement contract every published element owes a host (`apiShape.test.tsx` holds every one of them to it), and a reader should not have to resolve an `Omit` to find out whether a glyph can be positioned.
- `style` (ElementStyle): Inline style on the glyph. Typed `ElementStyle` rather than `CSSProperties`, so it admits the `--mtya-*` custom properties every element is themed through, which the DOM typing does not.

## OptionRow

- `className` (string)
- `style` (ElementStyle)
