# CellRenderOutput

Fields, allowed values, and APIs that use CellRenderOutput.

Canonical: https://grid.syidax.com/docs/types/CellRenderOutput/

<a id="definition"></a>

## Type definition

A question mark (?) marks an optional field; readonly marks a value you should not change directly. A union (|) accepts one of the listed forms. Functions are callbacks that Grid invokes at the relevant point.

```typescript
export type CellRenderOutput =
  | {
      kind: 'text';
      text: string;
      class?: string;
      title?: string;
    }
  | {
      kind: 'html';
      html: string;
      class?: string;
      title?: string;
    }
  | {
      kind: 'vnode';
      vnode: unknown;
      class?: string;
      title?: string;
    };
```

<a id="used-by"></a>

## APIs using this type

- [detailCellRenderer](https://grid.syidax.com/docs/options/detailCellRenderer.md) — Builds detail content using the text, html, or vnode contract. Takes precedence over declarative nested Grids.

<a id="parents"></a>

## Contracts containing this type

- [CellRenderer](https://grid.syidax.com/docs/types/CellRenderer.md)
- [GridRendererGui](https://grid.syidax.com/docs/types/GridRendererGui.md)
