Docs Menu
Docs/Guides/Prompts & 16 Input Types
Updated October 2026

Prompts & 16 Input Types

Collect user data with 16 native input types, including text, passwords, ranges, file uploads, and 6-box discrete OTP.

ui.prompt() enables capturing typed user input in a modal glass container with zero extra form libraries.

Supported Input Types - `text`, `password`, `email`, `number`, `tel`, `url`, `search` - `textarea`, `select`, `radio`, `checkbox`, `range` - `date`, `time`, `datetime-local`, `file`

typescript

const res = await ui.prompt({ title: 'Invite Teammate', text: 'Enter work email address:', input: 'email', placeholder: 'colleague@company.com', validate: (val) => (!val ? 'Email cannot be blank' : undefined), });

if (res.isConfirmed) { toast.success(Invitation sent to ${res.value}); } `

Want to test these options live?

Launch the interactive playground to experiment with themes, positions, and live generators.

Open in Playground →