Interface: ThemedBoxProperties
Defined in: src/theme/components/ThemedBox.tsx:48
The props accepted by the ThemedBox component.
Remarksโ
All properties are optional except children. Several props have default
values which are applied when the prop is omitted (see individual property
docs below).
Extendsโ
Extended byโ
Propertiesโ
children?โ
readonlyoptionalchildren:ReactNode
Defined in: shared/types/componentProps.ts:35
Component content (text, elements, or other components)
Inherited fromโ
CoreComponentProperties.children
className?โ
readonlyoptionalclassName:string
Defined in: shared/types/componentProps.ts:37
Additional CSS classes for styling customization
Inherited fromโ
CoreComponentProperties.className
disabled?โ
readonlyoptionaldisabled:boolean
Defined in: shared/types/componentProps.ts:39
Whether the component is disabled and non-interactive
Inherited fromโ
CoreComponentProperties.disabled
aria-describedby?โ
readonlyoptionalaria-describedby:string
Defined in: shared/types/componentProps.ts:53
ARIA described-by reference for additional descriptions
Inherited fromโ
AccessibilityProperties.aria-describedby
aria-label?โ
readonlyoptionalaria-label:string
Defined in: shared/types/componentProps.ts:55
ARIA label for screen readers
Inherited fromโ
AccessibilityProperties.aria-label
aria-labelledby?โ
readonlyoptionalaria-labelledby:string
Defined in: shared/types/componentProps.ts:57
ARIA labelledby reference for complex labeling
Inherited fromโ
AccessibilityProperties.aria-labelledby
aria-level?โ
readonlyoptionalaria-level:number
Defined in: shared/types/componentProps.ts:59
ARIA heading level for elements using role="heading"
Inherited fromโ
AccessibilityProperties.aria-level
as?โ
readonlyoptionalas:BoxElement
Defined in: src/theme/components/ThemedBox.tsx:56
Element type to render (for example div, button, section).
Default Valueโ
"div";
border?โ
readonlyoptionalborder:boolean
Defined in: src/theme/components/ThemedBox.tsx:63
Render a visible border when true.
Default Valueโ
false;
data-testid?โ
readonlyoptionaldata-testid:string
Defined in: src/theme/components/ThemedBox.tsx:68
Test identifier for automated testing (data-testid attribute).
onClick?โ
readonlyoptionalonClick: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.
onMouseEnter()?โ
readonlyoptionalonMouseEnter: () =>void
Defined in: src/theme/components/ThemedBox.tsx:82
Mouse enter callback.
Returnsโ
void
onMouseLeave()?โ
readonlyoptionalonMouseLeave: () =>void
Defined in: src/theme/components/ThemedBox.tsx:87
Mouse leave callback.
Returnsโ
void
open?โ
readonlyoptionalopen: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.
padding?โ
readonlyoptionalpadding:BoxPadding
Defined in: src/theme/components/ThemedBox.tsx:103
Padding size variant.
Default Valueโ
"md";
role?โ
readonlyoptionalrole:string
Defined in: src/theme/components/ThemedBox.tsx:108
Explicit ARIA role to apply when the component becomes interactive.
Overridesโ
rounded?โ
readonlyoptionalrounded:BoxRounded
Defined in: src/theme/components/ThemedBox.tsx:115
Border radius variant.
Default Valueโ
"md";
shadow?โ
readonlyoptionalshadow:BoxShadow
Defined in: src/theme/components/ThemedBox.tsx:120
Shadow depth variant. When omitted, no shadow class is added.
style?โ
readonlyoptionalstyle:CSSProperties
Defined in: src/theme/components/ThemedBox.tsx:127
Inline style object forwarded to the element.
Default Valueโ
{ } (internal singleton)
surface?โ
readonlyoptionalsurface:BoxSurface
Defined in: src/theme/components/ThemedBox.tsx:134
Surface variant used to select contextual surface styles.
Default Valueโ
"base";
tabIndex?โ
readonlyoptionaltabIndex: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.
Overridesโ
AccessibilityProperties.tabIndex
variant?โ
readonlyoptionalvariant:BoxVariant
Defined in: src/theme/components/ThemedBox.tsx:147
Visual variant used to choose background styling.
Default Valueโ
"primary";