Skip to main content

Interface: ResponsiveContextType

Defined in: types/context.ts:31

Responsive context type that extends responsive configuration with runtime state. Contains current breakpoint information and window dimensions.

Extends​

Properties​

windowWidth​

windowWidth: number

Defined in: types/context.ts:33

Current window width in pixels


currentBreakpoint​

currentBreakpoint: string

Defined in: types/context.ts:35

Currently active breakpoint name


setBreakpoint()​

setBreakpoint: (breakpoint) => void

Defined in: types/context.ts:37

Function to manually set the current breakpoint

Parameters​

breakpoint​

string

Returns​

void


default​

default: string

Defined in: types/responsive.ts:21

Default breakpoint to use when no breakpoint matches

Inherited from​

ResponsiveConfig.default


breakpoints​

breakpoints: Record<Breakpoint, BreakpointConfig>

Defined in: types/responsive.ts:23

Map of breakpoint names to their configuration

Inherited from​

ResponsiveConfig.breakpoints