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

# ContextualOptionConfig

> Represents a custom contextual menu option.

## Definition

**Assembly:** Mintlify.Core.dll

**Namespace:** Mintlify.Core.Models

## Syntax

```csharp theme={"dark"}
Mintlify.Core.Models.ContextualOptionConfig
```

## Summary

Represents a custom contextual menu option.

## Remarks

Custom options require [ContextualOptionConfig.Title](https://dotnetdocs.com/api-reference/Mintlify/Core/Models/ContextualOptionConfig.md#title), [ContextualOptionConfig.Description](https://dotnetdocs.com/api-reference/Mintlify/Core/Models/ContextualOptionConfig.md#description), and
[ContextualOptionConfig.Href](https://dotnetdocs.com/api-reference/Mintlify/Core/Models/ContextualOptionConfig.md#href). See [https://www.mintlify.com/docs/ai/contextual-menu](https://www.mintlify.com/docs/ai/contextual-menu).

## Examples

```csharp theme={"dark"}
{
  "title": "Request a feature",
  "description": "Join the discussion on GitHub",
  "icon": "plus",
  "href": "https://github.com/orgs/mintlify/discussions"
}
```

## Constructors

### &#x20;.ctor

#### Syntax

```csharp theme={"dark"}
public ContextualOptionConfig()
```

### &#x20;.ctor Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public Object()
```

## Properties

### &#x20;Description

Gets or sets the option description shown beneath the title when the menu expands.

#### Syntax

```csharp theme={"dark"}
public string Description { get; set; }
```

#### Property Value

Type: `string?`

### &#x20;Href

Gets or sets the destination URL or URL template.

#### Syntax

```csharp theme={"dark"}
public Mintlify.Core.Models.ContextualHrefConfig Href { get; set; }
```

#### Property Value

Type: `Mintlify.Core.Models.ContextualHrefConfig?`

#### Remarks

A string for a simple link, or an object with `base` and `query`
for dynamic links. Query values may use `$page`, `$path`, and
`$mcp` placeholders.

### &#x20;Icon

Gets or sets the option icon.

#### Syntax

```csharp theme={"dark"}
public Mintlify.Core.Models.IconConfig Icon { get; set; }
```

#### Property Value

Type: `Mintlify.Core.Models.IconConfig?`

### &#x20;Title

Gets or sets the option title.

#### Syntax

```csharp theme={"dark"}
public string Title { get; set; }
```

#### Property Value

Type: `string?`

## Methods

### &#x20;Equals Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual bool Equals(object obj)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `obj` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;Equals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public static bool Equals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;GetHashCode Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual int GetHashCode()
```

#### Returns

Type: `int`

### &#x20;GetType Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public System.Type GetType()
```

#### Returns

Type: `System.Type`

### &#x20;MemberwiseClone Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
protected internal object MemberwiseClone()
```

#### Returns

Type: `object`

### &#x20;ReferenceEquals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public static bool ReferenceEquals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;ToString Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual string ToString()
```

#### Returns

Type: `string?`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.