# ConfirmableComponentsV2Options

`interface` in `seedcord` · v0.11.0

<https://docs.seedcord.org/packages/seedcord/0.11.0/interfaces/confirmable-components-v2-options>

Configuration for Confirmable when using the Component V2 container API.

```ts
interface ConfirmableComponentsV2Options<
    TComponentType extends MessageComponentType = ComponentType.Button
> extends ConfirmableSharedOptions<TComponentType>
```

## Properties

### container

```ts
container: ConfirmableFactory<BuilderComponent<"container">>;
```

Container factory that renders the confirmation UI.

### decision

```ts
decision: ConfirmableDecision<TComponentType>;
```

Strategy for deciding if the user confirmed or cancelled. If omitted, implementation defaults are not specified here (but handled in logic).

### defer

```ts
defer: boolean;
```

Whether to defer the interaction automatically. 

### ephemeral

```ts
ephemeral: boolean;
```

whether the response should be ephemeral. 

### mode

```ts
mode: "v2";
```

### onResolved

```ts
onResolved: (r: ConfirmableResolution<TComponentType>) =>
    Promisable<void>;
```

Callback invoked after the decision is resolved and UI is cleared/replaced. This runs before the decorated method (if confirmed).

### outcomeUi

```ts
outcomeUi: ConfirmableOutcomeUiV2;
```

Outcome UI factories applied once the decision is resolved.

### timeoutMs

```ts
timeoutMs: number;
```

Timeout in milliseconds before the prompt is considered timed out.
