@atlaskit/app-provider
Version:
A top level provider for the Design System.
14 lines (13 loc) • 724 B
TypeScript
/**
* Server-side rendering utility. Generates the harmonised scrollbar HTML attributes so a
* product's server can spread them onto the server-rendered `<html>` element. This avoids the
* flash of un-harmonised scrollbars that would otherwise occur while waiting for
* `useScrollbarHarmonisation`'s client-only effect to run.
*
* @param {boolean} [isEnabled] - An explicit value overrides the shared rollout gate; when
* omitted, the shared gate controls the appearance.
*
* @returns {Object} Object of HTML attributes to be applied to the document root
*/
export declare function getScrollbarHarmonisationHtmlAttrs(isEnabled?: boolean): Record<string, string>;
export default getScrollbarHarmonisationHtmlAttrs;