# TableOptions

`interface` in `utils` · v0.7.0

<https://docs.seedcord.org/packages/utils/0.7.0/interfaces/table-options>

```ts
interface TableOptions
```

## Properties

### align

```ts
align: Alignment | readonly Alignment[]
```

Cell alignment. A scalar applies to every column. An array sets alignment per column and any column past the end of the array falls back to left.

### border

```ts
border: BorderStyle;
```

Frame glyph set. `markdown` emits GFM with no outer frame.

### emptyCell

```ts
emptyCell: string;
```

Fills a missing or empty cell so ragged rows stay aligned.

### fence

```ts
fence: boolean;
```

Wraps the output in a triple-backtick code block so Discord renders it monospace. The fence characters count against the page budget.

### header

```ts
header: boolean;
```

Treats the first row as a header and draws a separator beneath it (heavier for the double and ascii frames).

### maxWidth

```ts
maxWidth: number;
```

Max content display width applied to every column. Wider cells are wrapped or truncated.

### numericAlign

```ts
numericAlign: boolean;
```

Right-aligns a column whose non-empty body cells are all numeric. The header label is not judged, so a numeric column under a text header still aligns. An explicit align for that column wins.

### overflow

```ts
overflow: Overflow;
```

How an over-wide cell is handled once maxWidth is set. `wrap` word-wraps onto multiple lines, `truncate` cuts with a trailing ellipsis. The markdown border applies `truncate` but not `wrap`.

### padding

```ts
padding: number;
```

Spaces on each side of every cell.
