@hanamura/react-containers
Version:
Flexible container components for React
16 lines (15 loc) • 603 B
TypeScript
/**
* Debug attribute name for component identification
*/
export declare const DATA_COMPONENT = "data-rc";
/**
* Debug attribute name for component version
*/
export declare const DATA_VERSION = "data-rc-version";
/**
* Component identification props for debugging
* @param componentName - The name of the component
* @param debug - Whether to add debug attributes (defaults to process.env.NODE_ENV === 'development')
* @returns Object with data attributes for component identification
*/
export declare const getDebugProps: (componentName: string, debug?: boolean) => Record<string, string>;