# Grid track constructors
Build fixed, repeated, auto-fill, and auto-fit grid track definitions.

## APIs demonstrated

- [minmax](/reference/functions/grid-tracks/) from `@pibbl/core`
- [repeatTracks](/reference/functions/grid-tracks/) from `@pibbl/core`
- [autoFillTracks](/reference/functions/grid-tracks/) from `@pibbl/core`
- [autoFitTracks](/reference/functions/grid-tracks/) from `@pibbl/core`
- [GridMinMaxTrack](/reference/types/layout/) from `@pibbl/core`
- [GridRepeatTrack](/reference/types/layout/) from `@pibbl/core`
- [GridTrack](/reference/types/layout/) from `@pibbl/core`
- [GridTrackBreadth](/reference/types/layout/) from `@pibbl/core`

## Complete example

[Plain source](/minimal/layout/grid-tracks.ts). This example demonstrates a type-level or host-specific contract; it is checked with TypeScript rather than presented as an animated preview.

```ts
import {
  autoFillTracks,
  autoFitTracks,
  minmax,
  repeatTracks,
  type GridMinMaxTrack,
  type GridRepeatTrack,
  type GridTrack,
  type GridTrackBreadth,
} from "@pibbl/core";

const breadth: GridTrackBreadth = "1fr";
const bounded: GridMinMaxTrack = minmax({ min: 72, max: breadth });
const repeated: GridRepeatTrack = repeatTracks([bounded], { count: 2 });
const fill: GridRepeatTrack = autoFillTracks(96);
const fit: GridRepeatTrack = autoFitTracks(96);
const tracks: readonly GridTrack[] = [repeated, fill, fit];

const output = document.createElement("pre");
output.textContent = JSON.stringify(tracks, null, 2);
document.body.append(output);

```

## Usage notes

- Displays immutable track definitions in the document.

## Documentation version

Documentation built with @pibbl/core 0.0.2, revision a1dcf8e. ALPHA — NOT FOR PRODUCTION USE.
