dcl-ui-toolkit
Version:
A collection of UI helpers to make it easier to build a Decentraland scene using the SDK 7.
25 lines (24 loc) • 933 B
TypeScript
import { Prompt, PromptExternalConfig } from '../Prompt';
import { PromptButton } from '../Prompt/components/Button';
import { PromptText } from '../Prompt/components/Text';
type OptionPromptConfig = PromptExternalConfig & {
title: string | number;
titleSize?: number;
text: string | number;
textSize?: number;
useDarkTheme?: boolean;
acceptLabel?: string;
acceptSize?: number | 'auto';
rejectLabel?: string;
rejectSize?: number | 'auto';
onAccept: () => void;
onReject?: () => void;
};
export declare class OptionPrompt extends Prompt {
titleElement: PromptText;
textElement: PromptText;
primaryButtonElement: PromptButton;
secondaryButtonElement: PromptButton;
constructor({ startHidden, title, titleSize, text, textSize, useDarkTheme, acceptLabel, acceptSize, rejectLabel, rejectSize, onAccept, onReject, onClose, width, height, }: OptionPromptConfig);
}
export {};