gestalt
Version:
A set of React UI components which enforce Pinterest's design language
27 lines (26 loc) • 1.36 kB
TypeScript
export interface Indexable {
index(): number;
}
/**
*
* [FixedZIndex](https://gestalt.pinterest.systems/web/zindex_classes#FixedZIndex) is used for setting fixed z-index values. Use this class when you want to create an initial z-index to stack others on top of. FixedZIndex must be instantiated with a number.
*
* 
*
*/
export declare class FixedZIndex implements Indexable {
readonly z: number;
constructor(z: number);
index(): number;
}
/**
*
* [CompositeZIndex](https://gestalt.pinterest.systems/web/zindex_classes#CompositeZIndex) is used for dynamically composing z-index values. Use this class to layer components on top of an existing z-index in the stacking context. CompositeZIndex must be instantiated with an array of FixedZIndex or CompositeZIndex instances. CompositeZIndex returns the highest z-index value in the array +1.
*
* 
*/
export declare class CompositeZIndex implements Indexable {
readonly deps: ReadonlyArray<Indexable>;
constructor(deps: ReadonlyArray<Indexable>);
index(): number;
}