# SurfaceProps

Props for [`Surface`](https://docs.mapcairn.com/api/map/Surface.md).

This is an interface exported by `@mapcairn/map`, checked against version 0.2.0.

## Signature

```ts
import type { SurfaceProps } from "@mapcairn/map";
 
interface SurfaceProps extends HTMLAttributes<HTMLElement>
```

## Properties

### as

```ts
readonly as?: "div" | "section" | "aside" | "nav";
```

The element to render. Defaults to `div`.

### radius

```ts
readonly radius?: "pill" | "control" | "sheet";
```

Corner radius role. Defaults to `control`.

### variant

```ts
readonly variant?: "floating" | "raised" | "flat";
```

`floating` has the floating shadow, `raised` uses the raised surface
colour with no shadow, `flat` has neither. Defaults to `floating`.

Source: [packages/map/src/ui/Surface/Surface.tsx:7](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/ui/Surface/Surface.tsx#L7)
