···103103104104### Text Input
105105106106+The text prompt accepts a single line of text.
107107+106108```ts twoslash
107109// @errors: 2339 18048
108110import { text } from '@clack/prompts';
···122124<font color="#06989A">│</font> <span style="background-color:#FFFFFF"><font color="#181818">J</font></span><font color="#AAAAAA">ohn Doe</font>
123125<font color="#06989A">└</font></pre>
124126127127+Options:
128128+129129+- `message`: The prompt message shown to the user above the input.
130130+- `placeholder`: A visual hint shown when the field has no content.
131131+- `defaultValue`: A fallback value returned when the user provides nothing (empty input).
132132+- `initialValue`: The starting value shown when the prompt first renders. Users can edit this value before submitting.
133133+- `validate`: A function that validates user input. Return a `string` or `Error` to show as a validation error, or `undefined` to accept the result.
134134+- All [Common Options](#common-options)
135135+125136### Password Input
137137+138138+Behaves like the text component, but the input is masked.
126139127140```ts twoslash
128141import { password } from '@clack/prompts';
···147160<font color="#06989A">└</font></pre>
148161149162Options:
150150-- `message`: The prompt message to display
151151-- `mask`: Character used to mask input (default: `'▪'`)
152152-- `clearOnError`: When `true`, clears the input field when validation fails (useful for security)
163163+164164+- `message`: The prompt message or question shown to the user above the input.
165165+- `mask`: Character to use for masking input. Default: `'▪/•'`.
166166+- `validate`: A function that validates user input. Return a `string` or `Error` to show as a validation error, or `undefined` to accept the result.
167167+- `clearOnError`: When enabled it causes the input to be cleared if/when validation fails. Default: `false`.
168168+- All [Common Options](#common-options)
169169+170170+Common options (`withGuide`, `signal`, `input`, `output`) are also supported.
171171+172172+### Multi-line Text
173173+174174+The multi-line component accepts multiple lines of text input. By default, pressing Enter twice submits the input.
175175+176176+```ts twoslash
177177+import { multiline } from '@clack/prompts';
178178+179179+const bio = await multiline({
180180+ message: 'Enter your bio',
181181+ placeholder: 'Tell us about yourself...',
182182+ showSubmit: true,
183183+});
184184+```
185185+186186+<pre class="cli-preview"><font color="#555753">│</font>
187187+<font color="#06989A">◆</font> Enter your bio
188188+<font color="#06989A">│</font> <span style="background-color:#FFFFFF"><font color="#181818">T</font></span><font color="#AAAAAA">ell us about yourself...</font>
189189+<font color="#06989A">└</font>
190190+<font color="#AAAAAA"> [ submit ]</font></pre>
191191+192192+Options:
193193+194194+- `showSubmit`: When enabled it shows a `[ submit ]` button that can be focused with tab. By default, pressing Enter twice submits the input. Default: `false`.
195195+- All [Text Options](#text-input)
153196154197### Selection
155198