@voilajsx/uikit
Version:
Cross-platform React components with beautiful themes and OKLCH color science
25 lines • 981 B
TypeScript
/**
* Enhanced layout wrapper component with full prop drilling
* @param {Object} props - Component props
* @param {React.ReactNode} props.children - App content
* @param {Object} [props.overrides] - Manual overrides for env config
* @returns {JSX.Element} Wrapped app with layout theme and layout
*/
export function LayoutWrapper({ children, overrides }: {
children: React.ReactNode;
overrides?: Object | undefined;
}): JSX.Element;
/**
* Hook to access layout configuration in components
* @returns {Object} Current layout configuration
*/
export function useLayoutConfig(): Object;
/**
* Utility to merge layout config with component props
* @param {Object} componentProps - Component props
* @param {string} configKey - Key in layout config (e.g., 'adminLayout')
* @returns {Object} Merged props
*/
export function withLayoutConfig(componentProps: Object, configKey: string): Object;
import React from 'react';
//# sourceMappingURL=layout-wrapper.d.ts.map