# FitMode

> _Since v0.1.1_

Column sizing mode.

- `'fixed'` - Columns use their configured widths. Horizontal scrolling if content overflows.
- `'stretch'` - Columns stretch proportionally to fill available width. No horizontal scrolling.

Column sizing mode — determines how columns fill the available grid width.
Use `FitModeEnum` to access individual values by key.

```ts
type FitMode = typeof FitModeEnum[keyof typeof FitModeEnum]
```

## Runtime Values

Use `FitModeEnum` to reference these values from runtime code:

```ts
const FitModeEnum = {
  STRETCH: 'stretch',
  FIXED: 'fixed',
} as const;
```

| Key | Value |
| --- | ----- |
| `STRETCH` | `'stretch'` |
| `FIXED` | `'fixed'` |

## Example

```typescript
// Fixed widths - good for many columns
grid.fitMode = 'fixed';

// Stretch to fill - good for few columns
grid.fitMode = 'stretch';

// Via gridConfig
grid.gridConfig = { fitMode: 'stretch' };
```
