# ColumnShorthand

> _Since v0.7.0_

Type for column shorthand notation.

Supports:
- Simple string: `'name'` → `{ field: 'name', header: 'Name' }`
- With type: `'salary:number'` → `{ field: 'salary', header: 'Salary', type: 'number' }`
- Full config object: `{ field: 'id', header: 'ID', width: 80 }` (passed through)

```ts
type ColumnShorthand = string | ColumnConfig<TRow>
```

#### Example

```tsx
// All equivalent:
columns={['id', 'name', 'email']}
columns={['id:number', 'name:string', 'email']}
columns={[{ field: 'id' }, { field: 'name' }, { field: 'email' }]}
```
