Skip to content

frontend-web-editor


Function: UseCurrentBreakpoint()

UseCurrentBreakpoint(): string

Defined in: utils.ts:15

React hook wrapper that returns the current Elastic UI breakpoint.

Returns

string

The current EUI breakpoint name (e.g. "xs", "s", "m", "l", "xl").

Remarks

If the underlying theme breakpoint cannot be determined (for example during SSR or very early in the app lifecycle), this will return the DEFAULT_BREAKPOINT value.