Skip to main content

SurfaceProps

Props for Surface.

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

Signature​

import type { SurfaceProps } from "@mapcairn/map";

interface SurfaceProps extends HTMLAttributes<HTMLElement>

Properties​

as​

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

The element to render. Defaults to div.

radius​

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

Corner radius role. Defaults to control.

variant​

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