@wix/design-system
Version:
@wix/design-system
33 lines • 1.49 kB
TypeScript
export type WixDesignSystemProviderProps = {
dataHook?: string;
/** Specifies a CSS class name to be appended to the component’s root element.
* @internal
*/
className?: string;
as?: 'span' | 'div';
children?: React.ReactNode;
features?: {
/**
* @deprecated This prop has no effect. As of v1.162.0, newColorsBranding is always enabled and the old branding is no longer available.
* Will be removed in the next major release.
*/
newColorsBranding?: boolean;
/** Not recommended. Hides certain elements, which can negatively affect accessibility. */
compactMode?: boolean;
};
theme?: {
className: string;
};
/** Define the user locale to be used and effect some translation and localization (like DatePicker) - this should be compliant to Intl language codes*/
locale?: string;
/** Define id that will be applied to the header of a main page */
pageHeaderId?: string;
/** Controls whether mobile styles should be applied on mobile viewport. DO NOT enable if using WDS inside an iframe. */
mobile?: boolean;
/**
* CSS class name propagated via context to components like Modal, Popover, PopoverNext, and SidePanel.
* Applied to portal nodes or root/content elements to ensure styling reaches content rendered outside the provider's DOM tree.
*/
contextClassName?: string;
};
//# sourceMappingURL=WixDesignSystemProvider.types.d.ts.map