๐ŸงจPre-releaseYou shouldn't use this library-1 min read

SurfaceProps API Reference

Prop reference

TitleTypeDefaultDescription
variant'card'
| 'well'
| 'shape'
โ€“

The variant of the surface, shape is currently experimental.

color'foreground'
| 'background'
| 'accent'
| 'danger'
| 'string'
โ€“

The color of the surface.

shadow'sm'
| 'md'
| 'lg'
| 'xl'
| '2xl'
โ€“

The shadow size of the surface.

border'sm'
| 'md'
| 'lg'
| 'xl'
| 'none'
โ€“

The border size of the surface.

rounded'sm'
| 'md'
| 'lg'
| 'xl'
| 'full'
โ€“

The border radius of the surface.

paddingSize
โ€“

The padding size of the surface.

onClickOnClickFunction<HTMLDivElement>
โ€“

The click handler for the surface.

classNamestring
โ€“

Additional classNames for the root element

styleCSSProperties
โ€“

Additional styles for the root element

* Props marked with an asterisk are required.

CSS target reference

ExportCSS Class TargetDescription
SurfaceTargetClassRoot.NPUI-Surface-root

Root of the Surface component

Exports are available from /src/components/surface/surface.tsx or from
Related APIs
Made by .