dcl-ui-toolkit
Version:
A collection of UI helpers to make it easier to build a Decentraland scene using the SDK 7.
32 lines (31 loc) • 1.31 kB
TypeScript
import ReactEcs from '@dcl/sdk/react-ecs';
import { Callback } from '@dcl/react-ecs/dist/components/listeners/types';
import { EntityPropTypes } from '@dcl/react-ecs/dist/components/types';
import { InPromptUIObject, InPromptUIObjectConfig } from '../../InPromptUIObject';
export type PromptCloseIconIconElementProps = Omit<EntityPropTypes, 'uiTransform' | 'uiBackground'> & {
uiTransform?: Omit<NonNullable<EntityPropTypes['uiTransform']>, 'width' | 'height' | 'position' | 'display'>;
uiBackground?: Omit<NonNullable<EntityPropTypes['uiBackground']>, 'uvs'>;
};
export declare enum PromptCloseIconStyles {
CLOSEW = "closeW",
CLOSED = "closeD"
}
export type PromptCloseIconConfig = InPromptUIObjectConfig & {
style: PromptCloseIconStyles;
width?: number;
height?: number;
xPosition?: number;
yPosition?: number;
onMouseDown: Callback;
};
export declare class PromptCloseIcon extends InPromptUIObject {
iconElement: PromptCloseIconIconElementProps;
style: PromptCloseIconStyles;
width: number;
height: number;
xPosition: number;
yPosition: number;
onMouseDown: Callback;
constructor({ parent, startHidden, style, width, height, xPosition, yPosition, onMouseDown, }: PromptCloseIconConfig);
render(key?: string): ReactEcs.JSX.Element;
}