@atlaskit/app-provider
Version:
A top level provider for the Design System.
20 lines (19 loc) • 893 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 input - A boolean overrides the appearance; an object supplies the product-resolved
* `isEnabled` value without evaluating the shared gate. When omitted, the shared gate is used.
*
* @returns {Object} Object of HTML attributes to be applied to the document root
*/
export declare function getScrollbarHarmonisationHtmlAttrs(input?: boolean | {
isEnabled: boolean;
/**
* Unused. Tracks are always transparent.
*/
isTransparentEnabled?: boolean;
}): Record<string, string>;
export default getScrollbarHarmonisationHtmlAttrs;