# Docs Preset API reference

> Exports of @npm-factory/docs-preset.

Source: https://npm-factory.n.yatsyk.com/docs/docs-preset/jsdoc

## Functions

### createDocsNavFromDot

Creates a simple navigation model from a DOT manifest.
The site can map this structure into Fumadocs-compatible navigation.

```ts
createDocsNavFromDot(dot: DotLike): DocsNavItem[]
```

### Callout

```ts
Callout(props: CalloutProps): import("/home/runner/work/npm-factory/npm-factory/node_modules/.pnpm/@types+react@19.2.10/node_modules/@types/react/jsx-runtime").JSX.Element
```

### CodeGroup

```ts
CodeGroup(props: CodeGroupProps): import("/home/runner/work/npm-factory/npm-factory/node_modules/.pnpm/@types+react@19.2.10/node_modules/@types/react/jsx-runtime").JSX.Element
```

### Step

```ts
Step(props: StepProps): import("/home/runner/work/npm-factory/npm-factory/node_modules/.pnpm/@types+react@19.2.10/node_modules/@types/react/jsx-runtime").JSX.Element
```

### Steps

```ts
Steps(props: PropsWithChildren): import("/home/runner/work/npm-factory/npm-factory/node_modules/.pnpm/@types+react@19.2.10/node_modules/@types/react/jsx-runtime").JSX.Element
```

### Tab

```ts
Tab(props: TabProps): import("/home/runner/work/npm-factory/npm-factory/node_modules/.pnpm/@types+react@19.2.10/node_modules/@types/react/jsx-runtime").JSX.Element
```

### Tabs

```ts
Tabs(props: TabsProps): import("/home/runner/work/npm-factory/npm-factory/node_modules/.pnpm/@types+react@19.2.10/node_modules/@types/react/jsx-runtime").JSX.Element
```

## Types

### DocsNavItem

```ts
type DocsNavItem = {
  title: string;
  href: string;
  items: DocsNavItem[];
}
```

### DotLike

```ts
type DotLike = {
  project: {
    id: string;
  };
  modules: DotLikeModule[];
  docs: {
    apiDocs: "enabled" | "disabled";
  };
}
```
