# TableHeader
Defines the header section of Table.
## Import
```tsx
import { TableHeader } from '@coinbase/cds-web/tables/TableHeader'
```
## Examples
### Basic usage
```tsx live
```
### Sticky Header Example
```tsx live
Name
Role
Department
Location
{Array.from({ length: 20 }, (_, i) => (
Employee {i + 1}
{['Developer', 'Designer', 'Manager', 'Analyst'][i % 4]}
{['Engineering', 'Design', 'Product', 'Sales'][i % 4]}
{['New York', 'London', 'Tokyo', 'Berlin'][i % 4]}
))}
```
### Multiple Columns Example
```tsx live
ID
Name
Status
Date
001
Project Alpha
Active
2024-03-20
002
Project Beta
Pending
2024-03-21
```
## Props
| Prop | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `as` | `div \| tbody \| tfoot \| thead` | No | `undefined` | Internal only |
| `className` | `string` | No | `-` | - |
| `sticky` | `boolean` | No | `false` | Use to make a header stick to the top of the table when scrolled This will require setting a height or maxHeight on the Table or its parent |
| `testID` | `string` | No | `-` | Used to locate this element in unit and end-to-end tests. Under the hood, testID translates to data-testid on Web. On Mobile, testID stays the same - testID |