Skip to main content

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โ€‹

Propertiesโ€‹

children?โ€‹

readonly optional children: ReactNode

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

Component content (text, elements, or other components)

Inherited fromโ€‹

CoreComponentProperties.children


className?โ€‹

readonly optional className: string

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

Additional CSS classes for styling customization

Inherited fromโ€‹

CoreComponentProperties.className


disabled?โ€‹

readonly optional disabled: boolean

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

Whether the component is disabled and non-interactive

Inherited fromโ€‹

CoreComponentProperties.disabled


aria-describedby?โ€‹

readonly optional aria-describedby: string

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

ARIA described-by reference for additional descriptions

Inherited fromโ€‹

AccessibilityProperties.aria-describedby


aria-label?โ€‹

readonly optional aria-label: string

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

ARIA label for screen readers

Inherited fromโ€‹

AccessibilityProperties.aria-label


aria-labelledby?โ€‹

readonly optional aria-labelledby: string

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

ARIA labelledby reference for complex labeling

Inherited fromโ€‹

AccessibilityProperties.aria-labelledby


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";

border?โ€‹

readonly optional border: boolean

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

Render a visible border when true.

Default Valueโ€‹

false;

onClick?โ€‹

readonly optional onClick: ClickHandler

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

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()?โ€‹

readonly optional onMouseEnter: () => void

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

Mouse enter callback.

Returnsโ€‹

void


onMouseLeave()?โ€‹

readonly optional onMouseLeave: () => void

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

Mouse leave callback.

Returnsโ€‹

void


padding?โ€‹

readonly optional padding: BoxPadding

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

Padding size variant.

Default Valueโ€‹

"md";

role?โ€‹

readonly optional role: string

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

Explicit ARIA role to apply when the component becomes interactive.

Overridesโ€‹

AccessibilityProperties.role


rounded?โ€‹

readonly optional rounded: BoxRounded

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

Border radius variant.

Default Valueโ€‹

"md";

shadow?โ€‹

readonly optional shadow: BoxShadow

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

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


style?โ€‹

readonly optional style: CSSProperties

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

Inline style object forwarded to the element.

Default Valueโ€‹

{ } (internal singleton)

surface?โ€‹

readonly optional surface: BoxSurface

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

Surface variant used to select contextual surface styles.

Default Valueโ€‹

"base";

tabIndex?โ€‹

readonly optional tabIndex: number

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

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

Overridesโ€‹

AccessibilityProperties.tabIndex


variant?โ€‹

readonly optional variant: BoxVariant

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

Visual variant used to choose background styling.

Default Valueโ€‹

"primary";