UNPKG

dcl-ui-toolkit

Version:

A collection of UI helpers to make it easier to build a Decentraland scene using the SDK 7.

19 lines (18 loc) 707 B
import { Prompt, PromptExternalConfig } from '../Prompt'; import { PromptButton } from '../Prompt/components/Button'; import { PromptText } from '../Prompt/components/Text'; type OkPromptConfig = PromptExternalConfig & { text: string | number; textSize?: number; useDarkTheme?: boolean; acceptLabel?: string; acceptSize?: number | 'auto'; onAccept?: () => void; filter?: (text: string | number) => number; }; export declare class OkPrompt extends Prompt { textElement: PromptText; buttonElement: PromptButton; constructor({ startHidden, text, textSize, useDarkTheme, acceptLabel, onAccept, acceptSize, onClose, filter, width, height, }: OkPromptConfig); } export {};