Skip to main content

Interface: SurfaceContainerProperties

Defined in: src/components/shared/SurfaceContainer.tsx:15

Properties for the SurfaceContainer component.

Extendsโ€‹

Propertiesโ€‹

children?โ€‹

readonly optional children: ReactNode

Defined in: shared/types/componentProps.ts:35

Component content (text, elements, or other components)

Inherited fromโ€‹

ThemedBoxProperties.children


disabled?โ€‹

readonly optional disabled: boolean

Defined in: shared/types/componentProps.ts:39

Whether the component is disabled and non-interactive

Inherited fromโ€‹

ThemedBoxProperties.disabled


aria-describedby?โ€‹

readonly optional aria-describedby: string

Defined in: shared/types/componentProps.ts:53

ARIA described-by reference for additional descriptions

Inherited fromโ€‹

ThemedBoxProperties.aria-describedby


aria-label?โ€‹

readonly optional aria-label: string

Defined in: shared/types/componentProps.ts:55

ARIA label for screen readers

Inherited fromโ€‹

ThemedBoxProperties.aria-label


aria-labelledby?โ€‹

readonly optional aria-labelledby: string

Defined in: shared/types/componentProps.ts:57

ARIA labelledby reference for complex labeling

Inherited fromโ€‹

ThemedBoxProperties.aria-labelledby


aria-level?โ€‹

readonly optional aria-level: number

Defined in: shared/types/componentProps.ts:59

ARIA heading level for elements using role="heading"

Inherited fromโ€‹

ThemedBoxProperties.aria-level


className?โ€‹

readonly optional className: string

Defined in: src/components/shared/SurfaceContainer.tsx:17

Optional class name applied to the underlying element.

Overridesโ€‹

ThemedBoxProperties.className


as?โ€‹

readonly optional as: BoxElement

Defined in: src/theme/components/ThemedBox.tsx:56

Element type to render (for example div, button, section).

Default Valueโ€‹

"div";

Inherited fromโ€‹

ThemedBoxProperties.as


border?โ€‹

readonly optional border: boolean

Defined in: src/theme/components/ThemedBox.tsx:63

Render a visible border when true.

Default Valueโ€‹

false;

Inherited fromโ€‹

ThemedBoxProperties.border


data-testid?โ€‹

readonly optional data-testid: string

Defined in: src/theme/components/ThemedBox.tsx:68

Test identifier for automated testing (data-testid attribute).

Inherited fromโ€‹

ThemedBoxProperties.data-testid


onClick?โ€‹

readonly optional onClick: ClickHandler

Defined in: src/theme/components/ThemedBox.tsx:77

Click handler for interactive usage.

Remarksโ€‹

When provided the component will add keyboard handling and ARIA attributes for accessibility if the rendered element is a div.

Inherited fromโ€‹

ThemedBoxProperties.onClick


onMouseEnter()?โ€‹

readonly optional onMouseEnter: () => void

Defined in: src/theme/components/ThemedBox.tsx:82

Mouse enter callback.

Returnsโ€‹

void

Inherited fromโ€‹

ThemedBoxProperties.onMouseEnter


onMouseLeave()?โ€‹

readonly optional onMouseLeave: () => void

Defined in: src/theme/components/ThemedBox.tsx:87

Mouse leave callback.

Returnsโ€‹

void

Inherited fromโ€‹

ThemedBoxProperties.onMouseLeave


open?โ€‹

readonly optional open: boolean

Defined in: src/theme/components/ThemedBox.tsx:96

Whether the dialog is open (for dialog elements only).

Remarksโ€‹

This prop is only relevant when as="dialog" and controls the dialog's visibility using the native HTML dialog open attribute.

Inherited fromโ€‹

ThemedBoxProperties.open


padding?โ€‹

readonly optional padding: BoxPadding

Defined in: src/theme/components/ThemedBox.tsx:103

Padding size variant.

Default Valueโ€‹

"md";

Inherited fromโ€‹

ThemedBoxProperties.padding


role?โ€‹

readonly optional role: string

Defined in: src/theme/components/ThemedBox.tsx:108

Explicit ARIA role to apply when the component becomes interactive.

Inherited fromโ€‹

ThemedBoxProperties.role


rounded?โ€‹

readonly optional rounded: BoxRounded

Defined in: src/theme/components/ThemedBox.tsx:115

Border radius variant.

Default Valueโ€‹

"md";

Inherited fromโ€‹

ThemedBoxProperties.rounded


shadow?โ€‹

readonly optional shadow: BoxShadow

Defined in: src/theme/components/ThemedBox.tsx:120

Shadow depth variant. When omitted, no shadow class is added.

Inherited fromโ€‹

ThemedBoxProperties.shadow


style?โ€‹

readonly optional style: CSSProperties

Defined in: src/theme/components/ThemedBox.tsx:127

Inline style object forwarded to the element.

Default Valueโ€‹

{ } (internal singleton)

Inherited fromโ€‹

ThemedBoxProperties.style


surface?โ€‹

readonly optional surface: BoxSurface

Defined in: src/theme/components/ThemedBox.tsx:134

Surface variant used to select contextual surface styles.

Default Valueโ€‹

"base";

Inherited fromโ€‹

ThemedBoxProperties.surface


tabIndex?โ€‹

readonly optional tabIndex: number

Defined in: src/theme/components/ThemedBox.tsx:140

Explicit tabIndex for interactive elements. When omitted and the component is interactive, a sensible default is applied.

Inherited fromโ€‹

ThemedBoxProperties.tabIndex


variant?โ€‹

readonly optional variant: BoxVariant

Defined in: src/theme/components/ThemedBox.tsx:147

Visual variant used to choose background styling.

Default Valueโ€‹

"primary";

Inherited fromโ€‹

ThemedBoxProperties.variant