# nylas-organizer-confirmation-card

Source: https://developer.nylas.com/docs/reference/ui/organizer-confirmation-card/

The `nylas-organizer-confirmation-card` component is a UI component that displays the booked event card.

## Overview

- **Tag**: `<nylas-organizer-confirmation-card>`
- **Encapsulation**: shadow

## Installation

### HTML / Web Component

```html
<script type="module" src="https://cdn.jsdelivr.net/npm/@nylas/web-elements/dist/cdn/nylas-web-elements/nylas-web-elements.esm.js"></script>
```

### React

```bash
npm install @nylas/react
```

## Usage

### HTML

```html
<nylas-organizer-confirmation-card></nylas-organizer-confirmation-card>
```

### React

```jsx
import { NylasOrganizerConfirmationCard } from '@nylas/react';

export default function Example() {
  return <NylasOrganizerConfirmationCard />;
}
```

## Props

| Property | Attribute | Type | Default | Required | Description |
| --- | --- | --- | --- | --- | --- |
| `configSettings` | `config-settings` | any | - | No | The config settings for the scheduler. |
| `isLoading` | `is-loading` | boolean \| undefined | - | No | The loading state prop. Used to display loading state when fetching availability. |
| `organizerConfirmationBookingId` | `organizer-confirmation-booking-id` | string \| undefined | - | No | Booking flow type. |
| `selectedLanguage` | `selected-language` | string | `navigator.language` | No | The selected language. |
| `themeConfig` | `theme-config` | any | - | No | The theme configuration. |

## Events

| Event | Detail | Description |
| --- | --- | --- |
| `confirmBookingButtonClicked` | { bookingId: string; host: HTMLNylasOrganizerConfirmationCardElement; errorHandler?: ((error: NylasSchedulerErrorResponse) => void) \| undefined; } | Reschedule button clicked event. |
| `confirmBookingError` | NylasSchedulerErrorResponse | This event is fired when an error occurs while rescheduling the booking. |
| `rejectBookingButtonClicked` | { bookingId: string; host: HTMLNylasOrganizerConfirmationCardElement; } | Reject booking button clicked event. |

## Methods

### `resetAction`

**Signature**: `resetAction() => Promise<void>`

**Returns**: `Promise<void>`

## CSS shadow parts

| Part | Description |
| --- | --- |
| `nmcc` | The booked event card host. |
| `nmcc__button-outline` | The cancel & reschedule button CTA. |
| `nmcc__cancel-cta` | The cancel button CTA. |
| `nmcc__card` | The booked event card. |
| `nmcc__description` | The description of the booked event card. |
| `nmcc__reschedule-cta` | The reschedule button CTA. |
| `nmcc__title` | The title of the booked event card. |
| `nmccc__card` |  |

## Dependencies

This component uses the following child components:

- [`<calendar-check-icon>`](/docs/reference/ui/calendar-check-icon/)
- [`<button-component>`](/docs/reference/ui/button-component/)

## Used by

This component is used inside:

- [`<nylas-scheduling>`](/docs/reference/ui/scheduling/)
