Components/Surface

Search documentation

Jump to any guide or component.

↑↓ move · Enter open · Esc close

Foundations · Surface

SSR NativeAccessible

Surface

Creates semantic background hierarchy without prescribing content layout.

Live previewv0.1.4

Surface

A quiet container for related content.

Raised surface

Elevation is reserved for content that needs separation.

Astro
---
import { Surface } from '@charvesta/cetha';
---

<Surface as="section" level="raised" bordered>
  Surface content
</Surface>

API reference

PropTypeDefaultDescription
as'div' | 'section' | 'article' | 'aside''div'Rendered HTML element.
level'base' | 'surface' | 'raised''surface'Background elevation.
borderedbooleanfalseAdds a subtle border.
classstringAdditional classes forwarded to the rendered element.

Accessibility

Choose the semantic element based on document structure, not appearance.