---
title: GridBox
description: GridBox - a GridLayout with theme-appropriate spacing and padding.
---

import Link from '@slint/common-files/src/components/Link.astro';

A `GridBox` is a <Link type="GridLayout" /> with default `padding` and `spacing` from <Link type="StyleMetrics" />,
providing theme-appropriate values. Use `GridLayout` directly when you need full control over spacing and padding.
