---
url: /reference/api/logger/prompts.Interface.BoxOptions.md
---
# Interface: BoxOptions

Defined in: node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:233

Options for the [box](prompts.Variable.box.md) prompt.

## Extends

* [`CommonOptions`](prompts.Interface.CommonOptions.md)

## Properties

&#x20;`accessible?`

`boolean`

‐

[`CommonOptions`](prompts.Interface.CommonOptions.md).[`accessible`](prompts.Interface.CommonOptions.md#property-accessible)

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:42

&#x20;`contentAlign?`

[`BoxAlignment`](prompts.TypeAlias.BoxAlignment.md)

Alignment of the content (`'left'`, `'center'`, or `'right'`).

**Default**

```ts twoslash
// @include: imports
"left";
```

‐

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:238

&#x20;`contentPadding?`

`number`

Padding around the content.

**Default**

```ts twoslash
// @include: imports
2;
```

‐

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:258

&#x20;`formatBorder?`

(`text`) => `string`

Custom function to style the border characters.

‐

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:267

&#x20;`input?`

`Readable`

‐

[`CommonOptions`](prompts.Interface.CommonOptions.md).[`input`](prompts.Interface.CommonOptions.md#property-input)

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:38

&#x20;`output?`

`Writable`

‐

[`CommonOptions`](prompts.Interface.CommonOptions.md).[`output`](prompts.Interface.CommonOptions.md#property-output)

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:39

&#x20;`rounded?`

`boolean`

Use rounded corners when `true`, square corners when `false`.

**Default**

```ts twoslash
// @include: imports
true;
```

‐

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:263

&#x20;`signal?`

`AbortSignal`

‐

[`CommonOptions`](prompts.Interface.CommonOptions.md).[`signal`](prompts.Interface.CommonOptions.md#property-signal)

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:40

&#x20;`titleAlign?`

[`BoxAlignment`](prompts.TypeAlias.BoxAlignment.md)

Alignment of the title (`'left'`, `'center'`, or `'right'`).

**Default**

```ts twoslash
// @include: imports
"left";
```

‐

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:243

&#x20;`titlePadding?`

`number`

Padding around the title.

**Default**

```ts twoslash
// @include: imports
1;
```

‐

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:253

&#x20;`width?`

`number` | `"auto"`

The width of the box, either `'auto'` to fit the content or a number for a fixed width.

**Default**

```ts twoslash
// @include: imports
"auto";
```

‐

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:248

&#x20;`withGuide?`

`boolean`

‐

[`CommonOptions`](prompts.Interface.CommonOptions.md).[`withGuide`](prompts.Interface.CommonOptions.md#property-withguide)

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:41
