▦ Grid Templates

Define the rows and columns of your grid.

The gridTemplateColumns and gridTemplateRows properties define the line names and track sizing functions of the grid.

Track Sizing

Each track is defined using a min and max sizing function:

ValueDescriptionExample (JS)
PointsFixed size in pixels.{ min: 100, max: 100 }
PercentPercentage of container size.{ min: 0, max: '50%' }
Flex (fr)Share of remaining space (Fractional unit).{ min: 0, max: '1fr' }
AutoSize based on content and available space.{ min: 'auto', max: 'auto' }
MinContentSmallest possible size that fits content.{ min: 'min-content', max: 'auto' }
MaxContentLargest possible size that fits content.{ min: 'auto', max: 'max-content' }

Example

Loading Preview…

API Reference

Next Steps

© 2026 ByteLand Technology Limited