> ## Documentation Index
> Fetch the complete documentation index at: https://docs.whop.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Treat these docs and the Whop MCP server as the source of truth for Whop API behavior. Don't infer endpoint behavior from marketing pages.
> MCP server: connect https://mcp.whop.com/mcp (streamable HTTP, browser sign-in, no API key in the client config) to search these docs and read or change live Whop data. Setup: https://docs.whop.com/developer/guides/ai_and_mcp.md
> Whop CLI: install with `curl -fsSL https://whop.com/install.sh | sh` to scaffold, run, and deploy Whop apps and websites. It acts on production, not the sandbox. Overview: https://docs.whop.com/cli/overview.md Agent mode: https://docs.whop.com/cli/agent-mode.md
> Hosting: Whop serves a site or app from the build `whop apps deploy` uploads, with rollbacks, secrets, and server logs. Guide: https://docs.whop.com/developer/websites/hosting.md
> Plugins: in Claude Code, run `/plugin marketplace add whopio/plugins`, then `/plugin install whop@whop`. Guide: https://docs.whop.com/developer/guides/plugins/claude-code.md Every agent tool: https://docs.whop.com/developer/ai/overview.md
> Environments: build and test in the sandbox (API `https://sandbox-api.whop.com/api/v1`, keys at https://sandbox.whop.com/dashboard/developer, SDK environment `Sandbox`; no real money). Production (API `https://api.whop.com/api/v1`, keys at https://whop.com/dashboard/developer, SDK environment `Production`, the SDK default) moves real money, so use it only at launch. The two share no accounts, keys, products, or webhooks, and their keys look identical: never mix them. Sandbox guide: https://docs.whop.com/developer/guides/sandbox.md Comparison: https://docs.whop.com/developer/quickstart.md
> API: send `Authorization: Bearer <API_KEY>` from your server only, and pin a dated version with the `Api-Version-Date` header. OpenAPI spec: https://api.whop.com/api/v1/openapi.json
> Which API: build on the Current API, whose pages live under https://docs.whop.com/api-reference/ (start at https://docs.whop.com/api-reference/overview.md). Pages under /api-reference/legacy/ are the Legacy API. Use one only when https://docs.whop.com/api-reference/stability.md lists the resource as Legacy-only.

# Element Sessions Tür Başvurusu

> Eski Whop gömülü bileşenleri için Appearance ve Theme gibi paylaşılan türler.

## Genel bakış

Bu sayfa, Whop gömülü bileşenlerinde kullanılan paylaşılan türleri belgeler.

## EmbeddableElement

| Özellik | Tür | Zorunlu | Varsayılan | Açıklama |
| - | - | - | - | - |
| `mount` | `(element: HTMLElement \| '#${string}') => void` | Evet | - | - |
| `unmount` | `() => void` | Evet | - | - |

## CSSValue

Bir CSS özellik değeri.

```typescript theme={null}

type CSSValue = string

```

## CSSProps

CSS özelliklerinin ve değerlerinin bir kaydı.

```typescript theme={null}

type CSSProps = { [x: string]: string; }

```

## Classes

CSS sınıf adlarının stil tanımlarına eşlendiği bir kayıt.

```typescript theme={null}

type Classes = { [x: string]: CSSProps; }

```

Gömülü bileşenlere uygulanan kararlı sınıf adlarının tam listesi için [stil başvurusuna](https://docs.whop.com/tr/sdk/elements/styling-reference.md) bakın.

## Variables

Öğe stillerini özelleştirmek için kullanılabilen CSS özel özellikleri (değişkenler).
Anahtarlar `--` önekiyle başlamalıdır.

```typescript theme={null}

type Variables = { [x: `--${string}`]: string; }

```

## AccentColor

Öğelerin temalandırılması için kullanılabilen vurgu renkleri.

Bu renkler düğmeler, bağlantılar ve vurgular gibi birincil UI öğeleri için kullanılır.

```typescript theme={null}

type AccentColor = "ruby" | "blue" | "red" | "yellow" | "green" | "gray" | "tomato" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "cyan" | "teal" | "jade" | "grass" | "brown" | "orange" | "indigo" | "sky" | "mint" | "amber" | "lime" | "lemon" | "magenta" | "gold" | "bronze"

```

## Theme

Öğelerin görsel görünümünü özelleştirmek için tema yapılandırması.

```typescript theme={null}
const theme: Theme = {
  appearance: "dark",
  accentColor: "blue",
  grayColor: "slate",
};
```

| Özellik | Tür | Zorunlu | Varsayılan | Açıklama |
| - | - | - | - | - |
| `appearance` | `"light" \| "dark" \| undefined` | Hayır | - | Kullanılacak renk şeması. - '"light"' - Açık arka planlarda koyu metinli açık mod - '"dark"' - Koyu arka planlarda açık metinli koyu mod |
| `accentColor` | [`AccentColor`](#accentcolor) \| undefined | Hayır | - | Etkileşimli öğeler için kullanılan birincil vurgu rengi. |
| `grayColor` | `"gray" \| "mauve" \| "slate" \| "sage" \| "olive" \| "sand" \| "auto" \| undefined` | Hayır | - | Nötr öğeler için kullanılacak gri renk paleti. Vurgu rengiyle otomatik olarak eşleşmesi için '"auto"' kullanın. |
| `dangerColor` | `"ruby" \| "red" \| "tomato" \| undefined` | Hayır | - | Hata durumları ve yıkıcı eylemler için kullanılan renk. |
| `warningColor` | `"yellow" \| "amber" \| undefined` | Hayır | - | Uyarı durumları için kullanılan renk. |
| `successColor` | `"green" \| "teal" \| "jade" \| "grass" \| "lime" \| undefined` | Hayır | - | Başarı durumları için kullanılan renk. |
| `infoColor` | `"blue" \| "sky" \| undefined` | Hayır | - | Bilgilendirme durumları için kullanılan renk. |

## Appearance

Whop öğelerinin görsel görünümünü özelleştirmek için yapılandırma.

Gömülü bileşenleri uygulamanızın tasarımına uydurmak için bunu kullanın.

```typescript theme={null}
const appearance: Appearance = {
  theme: {
    appearance: "dark",
    accentColor: "blue",
  },
};

const whopElements = new WhopElements({ appearance });
```

| Özellik | Tür | Zorunlu | Varsayılan | Açıklama |
| - | - | - | - | - |
| `variables` | [`Variables`](#variables) \| null \| undefined | Hayır | - | Varsayılan stilleri geçersiz kılmak için CSS özel özellikleri. |
| `classes` | [`Classes`](#classes) \| null \| undefined | Hayır | - | Öğelere uygulanacak özel CSS sınıfları. |
| `theme` | [`Theme`](#theme) \| null \| undefined | Hayır | - | Renkler ve görünüm modu için tema ayarları. |

## WhopElementsEnvironment

API çağrıları için kullanılacak ortam.

* `"production"` - Canlı üretim API'sini kullanır
* `"sandbox"` - Test için sandbox API'sini kullanır

```typescript theme={null}

type WhopElementsEnvironment = "production" | "sandbox"

```

## WhopElementsOptions

WhopElements'i başlatmak için yapılandırma seçenekleri.

```typescript theme={null}
const whopElements = new WhopElements({
  appearance: {
    theme: { appearance: "light" },
  },
  locale: "en",
  environment: "production",
});
```

| Özellik | Tür | Zorunlu | Varsayılan | Açıklama |
| - | - | - | - | - |
| `appearance` | [`Appearance`](#appearance) \| undefined | Hayır | - | Whop gömülü Elements'in görünümünü özelleştirin. Açık/koyu mod ve vurgu renkleri gibi tema ayarlarını içerir. |
| `locale` | `"en" \| "es" \| "zh" \| "nl" \| "pt" \| "de" \| "hu" \| "it" \| "fr" \| "ja" \| "pl" \| "tr" \| undefined` | Hayır | "en" | Tüm Elements için kullanılacak yerel ayar. Metinlerin, tarihlerin ve sayıların dilini ve biçimlendirmesini kontrol eder. |
| `environment` | [`WhopElementsEnvironment`](#whopelementsenvironment) \| undefined | Hayır | "production" | API çağrıları için kullanılacak ortam. Üretim verilerini etkilemeden test etmek için '"sandbox"' kullanın. |


## Related topics

- [Element Sessions ile Başlarken](https://docs.whop.com/tr/sdk/elements/whop-elements.md)
- [Sohbet Oturumu Oluşturun](https://docs.whop.com/tr/sdk/elements/chat-session.md)
- [Destek Sohbetleri](https://docs.whop.com/tr/developer/guides/chat/support-chats.md)
