Interface: SurfaceContainerProperties
Defined in: src/components/shared/SurfaceContainer.tsx:15
Properties for the SurfaceContainer component.
Hierarchyโ
Extendsโ
Indexableโ
[
key:`data-${string}`]:string|number|boolean|undefined
Propertiesโ
children?โ
readonlyoptionalchildren?:ReactNode
Defined in: shared/types/componentProps.ts:36
Component content (text, elements, or other components)
Inherited fromโ
disabled?โ
readonlyoptionaldisabled?:boolean
Defined in: shared/types/componentProps.ts:40
Whether the component is disabled and non-interactive
Inherited fromโ
id?โ
readonlyoptionalid?:string
Defined in: shared/types/componentProps.ts:54
Optional DOM id forwarded to the underlying element.
Inherited fromโ
aria-describedby?โ
readonlyoptionalaria-describedby?:string
Defined in: shared/types/componentProps.ts:81
ARIA described-by reference for additional descriptions
Inherited fromโ
ThemedBoxProperties.aria-describedby
aria-disabled?โ
readonlyoptionalaria-disabled?:boolean
Defined in: shared/types/componentProps.ts:83
ARIA disabled state for interactive controls that are visually disabled
Inherited fromโ
ThemedBoxProperties.aria-disabled
aria-label?โ
readonlyoptionalaria-label?:string
Defined in: shared/types/componentProps.ts:85
ARIA label for screen readers
Inherited fromโ
ThemedBoxProperties.aria-label
aria-labelledby?โ
readonlyoptionalaria-labelledby?:string
Defined in: shared/types/componentProps.ts:87
ARIA labelledby reference for complex labeling
Inherited fromโ
ThemedBoxProperties.aria-labelledby
aria-level?โ
readonlyoptionalaria-level?:number
Defined in: shared/types/componentProps.ts:89
ARIA heading level for elements using role="heading"
Inherited fromโ
ThemedBoxProperties.aria-level
className?โ
readonlyoptionalclassName?:string
Defined in: src/components/shared/SurfaceContainer.tsx:17
Optional class name applied to the underlying element.
Overridesโ
as?โ
readonlyoptionalas?:BoxElement
Defined in: src/theme/components/ThemedBox.tsx:62
Element type to render (for example div, button, section).
Default Valueโ
"div";
Inherited fromโ
border?โ
readonlyoptionalborder?:boolean
Defined in: src/theme/components/ThemedBox.tsx:69
Render a visible border when true.
Default Valueโ
false;
Inherited fromโ
data-testid?โ
readonlyoptionaldata-testid?:string
Defined in: src/theme/components/ThemedBox.tsx:74
Test identifier for automated testing (data-testid attribute).
Inherited fromโ
ThemedBoxProperties.data-testid
onClick?โ
readonlyoptionalonClick?:ClickHandler
Defined in: src/theme/components/ThemedBox.tsx:83
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โ
onMouseEnter?โ
readonlyoptionalonMouseEnter?: () =>void
Defined in: src/theme/components/ThemedBox.tsx:88
Mouse enter callback.
Returnsโ
void
Inherited fromโ
ThemedBoxProperties.onMouseEnter
onMouseLeave?โ
readonlyoptionalonMouseLeave?: () =>void
Defined in: src/theme/components/ThemedBox.tsx:93
Mouse leave callback.
Returnsโ
void
Inherited fromโ
ThemedBoxProperties.onMouseLeave
open?โ
readonlyoptionalopen?:boolean
Defined in: src/theme/components/ThemedBox.tsx:102
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โ
padding?โ
readonlyoptionalpadding?:BoxPadding
Defined in: src/theme/components/ThemedBox.tsx:109
Padding size variant.
Default Valueโ
"md";
Inherited fromโ
role?โ
readonlyoptionalrole?:string
Defined in: src/theme/components/ThemedBox.tsx:114
Explicit ARIA role to apply when the component becomes interactive.
Inherited fromโ
rounded?โ
readonlyoptionalrounded?:BoxRounded
Defined in: src/theme/components/ThemedBox.tsx:121
Border radius variant.
Default Valueโ
"md";
Inherited fromโ
shadow?โ
readonlyoptionalshadow?:BoxShadow
Defined in: src/theme/components/ThemedBox.tsx:126
Shadow depth variant. When omitted, no shadow class is added.
Inherited fromโ
style?โ
readonlyoptionalstyle?:CSSProperties
Defined in: src/theme/components/ThemedBox.tsx:133
Inline style object forwarded to the element.
Default Valueโ
{ } (internal singleton)
Inherited fromโ
surface?โ
readonlyoptionalsurface?:BoxSurface
Defined in: src/theme/components/ThemedBox.tsx:140
Surface variant used to select contextual surface styles.
Default Valueโ
"base";
Inherited fromโ
tabIndex?โ
readonlyoptionaltabIndex?:number
Defined in: src/theme/components/ThemedBox.tsx:146
Explicit tabIndex for interactive elements. When omitted and the component is interactive, a sensible default is applied.
Inherited fromโ
variant?โ
readonlyoptionalvariant?:BoxVariant
Defined in: src/theme/components/ThemedBox.tsx:153
Visual variant used to choose background styling.
Default Valueโ
"primary";