Definition
Assembly: Mintlify.Core.dll Namespace: Mintlify.Core.Models Inheritance: System.ObjectSyntax
Summary
Represents an icon configuration in Mintlify.Remarks
Icons can be simple string references or detailed configurations with style and library options. This matches the official Mintlify schema at https://mintlify.com/docs.jsonConstructors
.ctor
Syntax
.ctor Inherited
Inherited from
objectSyntax
Properties
Library
Gets or sets the icon library.Syntax
Property Value
Type:string?
Remarks
Specifies which icon library to use. Defaults to “fontawesome” if not specified. Supported libraries include “fontawesome” and “lucide”.Name
Gets or sets the icon name.Syntax
Property Value
Type:string
Remarks
This is the specific icon name, such as “home”, “folder”, “user”, etc.Style
Gets or sets the icon style.Syntax
Property Value
Type:string?
Remarks
Specifies the style variant of the icon. Common styles include: “brands”, “duotone”, “light”, “regular”, “solid”.Methods
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
ToString Override
Returns the string representation of the icon.Syntax
Returns
Type:string
The icon name or an empty string if null.
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?