@carbon/ibm-products-web-components
Version:
Carbon for IBM Products Web Components
42 lines • 1.32 kB
TypeScript
/**
* @license
*
* Copyright IBM Corp. 2026
*
* 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 { LitElement } from 'lit';
import { StackStepSize } from './stack-signal';
/**
* Tearsheet Stack wrapper component - Enables stacking behavior for child tearsheets.
*
* This component provides a context for tearsheet stacking, similar to React's StackProvider.
* Wrap multiple tearsheets with this component to enable stacking behavior.
*
* @element c4p-tearsheet-stack
* @slot - Default slot for tearsheet children
*/
declare class CDSTearsheetStack extends LitElement {
/**
* Defines the step size for stacking offset.
* - 'sm': 0.5rem buffer
* - 'md': 0.75rem buffer
* - 'lg': 1rem buffer (default)
*/
stackStepSize: StackStepSize;
/**
* Internal flag to track if this stack is active
*/
private _isActive;
connectedCallback(): void;
disconnectedCallback(): void;
updated(changedProperties: Map<string, any>): void;
render(): import("lit-html").TemplateResult<1>;
/**
* No styles needed - this is a logical wrapper only
*/
static styles: never[];
}
export default CDSTearsheetStack;
//# sourceMappingURL=tearsheet-stack.d.ts.map