# nylas-confirmed-event-card

Source: https://developer.nylas.com/docs/reference/ui/confirmed-event-card/

The `nylas-confirmed-event-card` component is a UI component that displays the confirmed event card.

## Overview

- **Tag**: `<nylas-confirmed-event-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-confirmed-event-card></nylas-confirmed-event-card>
```

### React

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

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

## Props

| Property | Attribute | Type | Default | Required | Description |
| --- | --- | --- | --- | --- | --- |
| `configSettings` | `config-settings` | any | - | No | The config settings for the scheduler. |
| `confirmedEventInfo` | `confirmed-event-info` | { booking_id?: string \| undefined; organizer?: { email: string; name: string; is_organizer?: boolean \| undefined; } \| undefined; title?: string \| undefined; description?: string \| undefined; status?: string \| undefined; event_id?: string \| undefined; location?: string \| undefined; booking_ref?: string \| undefined; } | - | Yes | The participant's name who booked the event / is logged in. |
| `selectedLanguage` | `selected-language` | LANGUAGE_CODE.de \| LANGUAGE_CODE.en \| LANGUAGE_CODE.es \| LANGUAGE_CODE.fr \| LANGUAGE_CODE.ja \| LANGUAGE_CODE.ko \| LANGUAGE_CODE.nl \| LANGUAGE_CODE.sv \| LANGUAGE_CODE.zh \| undefined | - | No | The selected language. |
| `themeConfig` | `theme-config` | any | - | No | The theme configuration. |

## Events

| Event | Detail | Description |
| --- | --- | --- |
| `closeConfirmEventCardClicked` | { errorHandler?: ((error: NylasSchedulerErrorResponse) => void) \| undefined; } | This event is fired when the close button is clicked on the confirmed event card. |
| `confirmedEventCardError` | NylasSchedulerErrorResponse | This event is fired when an error occurs. |

## CSS shadow parts

| Part | Description |
| --- | --- |
| `ncec` | The confirmed event card host. |
| `ncec__button-outline` | The close button CTA. |
| `ncec__card` | The confirmed event card. |
| `ncec__description` | The description of the confirmed event card. |
| `ncec__icon` | The calendar icon. |
| `ncec__title` | The title of the confirmed event 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/)
