@carbon/ibm-products
Version:
Carbon for IBM Products
22 lines • 795 B
TypeScript
/**
* Copyright IBM Corp. 2025, 2025
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { ReactNode } from 'react';
export interface StackContextType {
stack: string[];
notifyStack: (id: string, open: boolean, container: HTMLDivElement | null) => void;
getScaleFactor: (id: string) => number | null;
getBlockSizeChange: (id: string) => string | null;
getDepth: (id: string) => number | null;
}
interface StepProviderProps {
children: ReactNode;
stackStepSize?: 'sm' | 'md' | 'lg';
}
export declare const StackProvider: React.FC<StepProviderProps>;
export declare const useStackContext: () => StackContextType;
export {};
//# sourceMappingURL=StackContext.d.ts.map