Props
API reference for Surface. For usage examples, see the React tab.
| Name | Type | Default |
|---|
| children | ReactNode | — |
The children of the surface |
| elevation | 0 | 1 | 2 | 4 | 8 | 16 | 0 |
The elevation of the surface. |
| radius | "md" | "sm" | sm |
The border radius of the surface. |
| Name | Type | Default |
|---|
| id | string | — |
The unique identifier for the DOM element. |
| role | AriaRole | — |
The ARIA role assigned to the element to improve accessibility. Example roles include "button", "navigation", "dialog", etc. |
| Name | Type | Default |
|---|
| className | string | — |
CSS class names to apply custom styling. |
| style | CSSProperties | — |
Inline styles specified as a React-compatible CSS properties object. |