Skip to main content

Definition

Assembly: Mintlify.Core.dll Namespace: Mintlify.Core.Models

Syntax

Summary

Represents third-party npm package configuration for MDX pages and snippets.

Remarks

Adding this object, even empty, turns on third-party libraries so MDX pages and snippets can import components from packages in package.json. Requires a package-lock.json or pnpm-lock.yaml file next to docs.json. See https://www.mintlify.com/docs/customize/third-party-libraries.

Constructors

.ctor

Syntax

.ctor Inherited

Inherited from object

Syntax

Properties

Css

Gets or sets compiled CSS files that packages ship, as paths inside an installed package.

Syntax

Property Value

Type: System.Collections.Generic.List<string>?

Remarks

Example: @acme/ui/dist/styles.css.

Provider

Gets or sets the path to a snippet that exports a Provider component.

Syntax

Property Value

Type: string?

Remarks

The provider wraps each package component. Example: /snippets/provider.jsx.

Registries

Gets or sets the registry URL for each npm scope.

Syntax

Property Value

Type: System.Collections.Generic.Dictionary<string, string>?

Remarks

Example: { "@acme": "https://npm.acme.com/" }.

Ssr

Gets or sets whether to render package components to HTML when deploying.

Syntax

Property Value

Type: bool?

Remarks

Defaults to true.

Methods

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?