---
title: oh-grid-col - Layout Grid Column
component: oh-grid-col
label: Layout Grid Column
description: A column in a grid layout
source: https://github.com/openhab/openhab-webui/edit/main/bundles/org.openhab.ui/doc/components/oh-grid-col.md
prev: /docs/ui/components/
---

# oh-grid-col - Layout Grid Column

<!-- Put a screenshot here if relevant:
![](./images/oh-grid-col/header.jpg)
-->

[[toc]]

<!-- Note: you can overwrite the definition-provided description and add your own intro/additional sections instead -->
<!-- DO NOT REMOVE the following comments if you intend to keep the definition-provided description -->
<!-- GENERATED componentDescription -->
A column in a grid layout
<!-- GENERATED /componentDescription -->

## Configuration

<!-- DO NOT REMOVE the following comments -->
<!-- GENERATED props -->
### General
<div class="props">
<PropGroup label="General">
<PropBlock type="TEXT" name="width" label="Width">
  <PropDescription>
    Standard Width
  </PropDescription>
  <PropOptions>
    <PropOption value="5" label="5 %" />
    <PropOption value="10" label="10 %" />
    <PropOption value="15" label="15 %" />
    <PropOption value="20" label="20 %" />
    <PropOption value="25" label="25 %" />
    <PropOption value="30" label="30 %" />
    <PropOption value="33" label="33 %" />
    <PropOption value="35" label="35 %" />
    <PropOption value="40" label="40 %" />
    <PropOption value="45" label="45 %" />
    <PropOption value="50" label="50 %" />
    <PropOption value="55" label="55 %" />
    <PropOption value="60" label="60 %" />
    <PropOption value="65" label="65 %" />
    <PropOption value="66" label="66 %" />
    <PropOption value="70" label="70 %" />
    <PropOption value="75" label="75 %" />
    <PropOption value="80" label="80 %" />
    <PropOption value="85" label="85 %" />
    <PropOption value="90" label="90 %" />
    <PropOption value="95" label="95 %" />
    <PropOption value="100" label="100 %" />
  </PropOptions>
</PropBlock>
<PropBlock type="TEXT" name="xsmall" label="Width (XS)">
  <PropDescription>
    Column width when app width >= 480px
  </PropDescription>
  <PropOptions>
    <PropOption value="5" label="5 %" />
    <PropOption value="10" label="10 %" />
    <PropOption value="15" label="15 %" />
    <PropOption value="20" label="20 %" />
    <PropOption value="25" label="25 %" />
    <PropOption value="30" label="30 %" />
    <PropOption value="33" label="33 %" />
    <PropOption value="35" label="35 %" />
    <PropOption value="40" label="40 %" />
    <PropOption value="45" label="45 %" />
    <PropOption value="50" label="50 %" />
    <PropOption value="55" label="55 %" />
    <PropOption value="60" label="60 %" />
    <PropOption value="65" label="65 %" />
    <PropOption value="66" label="66 %" />
    <PropOption value="70" label="70 %" />
    <PropOption value="75" label="75 %" />
    <PropOption value="80" label="80 %" />
    <PropOption value="85" label="85 %" />
    <PropOption value="90" label="90 %" />
    <PropOption value="95" label="95 %" />
    <PropOption value="100" label="100 %" />
  </PropOptions>
</PropBlock>
<PropBlock type="TEXT" name="small" label="Width (S)">
  <PropDescription>
    Column width when app width >= 568px
  </PropDescription>
  <PropOptions>
    <PropOption value="5" label="5 %" />
    <PropOption value="10" label="10 %" />
    <PropOption value="15" label="15 %" />
    <PropOption value="20" label="20 %" />
    <PropOption value="25" label="25 %" />
    <PropOption value="30" label="30 %" />
    <PropOption value="33" label="33 %" />
    <PropOption value="35" label="35 %" />
    <PropOption value="40" label="40 %" />
    <PropOption value="45" label="45 %" />
    <PropOption value="50" label="50 %" />
    <PropOption value="55" label="55 %" />
    <PropOption value="60" label="60 %" />
    <PropOption value="65" label="65 %" />
    <PropOption value="66" label="66 %" />
    <PropOption value="70" label="70 %" />
    <PropOption value="75" label="75 %" />
    <PropOption value="80" label="80 %" />
    <PropOption value="85" label="85 %" />
    <PropOption value="90" label="90 %" />
    <PropOption value="95" label="95 %" />
    <PropOption value="100" label="100 %" />
  </PropOptions>
</PropBlock>
<PropBlock type="TEXT" name="medium" label="Width (M)">
  <PropDescription>
    Column width when app width >= 720px
  </PropDescription>
  <PropOptions>
    <PropOption value="5" label="5 %" />
    <PropOption value="10" label="10 %" />
    <PropOption value="15" label="15 %" />
    <PropOption value="20" label="20 %" />
    <PropOption value="25" label="25 %" />
    <PropOption value="30" label="30 %" />
    <PropOption value="33" label="33 %" />
    <PropOption value="35" label="35 %" />
    <PropOption value="40" label="40 %" />
    <PropOption value="45" label="45 %" />
    <PropOption value="50" label="50 %" />
    <PropOption value="55" label="55 %" />
    <PropOption value="60" label="60 %" />
    <PropOption value="65" label="65 %" />
    <PropOption value="66" label="66 %" />
    <PropOption value="70" label="70 %" />
    <PropOption value="75" label="75 %" />
    <PropOption value="80" label="80 %" />
    <PropOption value="85" label="85 %" />
    <PropOption value="90" label="90 %" />
    <PropOption value="95" label="95 %" />
    <PropOption value="100" label="100 %" />
  </PropOptions>
</PropBlock>
<PropBlock type="TEXT" name="large" label="Width (L)">
  <PropDescription>
    Column width when app width >= 1024px
  </PropDescription>
  <PropOptions>
    <PropOption value="5" label="5 %" />
    <PropOption value="10" label="10 %" />
    <PropOption value="15" label="15 %" />
    <PropOption value="20" label="20 %" />
    <PropOption value="25" label="25 %" />
    <PropOption value="30" label="30 %" />
    <PropOption value="33" label="33 %" />
    <PropOption value="35" label="35 %" />
    <PropOption value="40" label="40 %" />
    <PropOption value="45" label="45 %" />
    <PropOption value="50" label="50 %" />
    <PropOption value="55" label="55 %" />
    <PropOption value="60" label="60 %" />
    <PropOption value="65" label="65 %" />
    <PropOption value="66" label="66 %" />
    <PropOption value="70" label="70 %" />
    <PropOption value="75" label="75 %" />
    <PropOption value="80" label="80 %" />
    <PropOption value="85" label="85 %" />
    <PropOption value="90" label="90 %" />
    <PropOption value="95" label="95 %" />
    <PropOption value="100" label="100 %" />
  </PropOptions>
</PropBlock>
<PropBlock type="TEXT" name="xlarge" label="Width (XL)">
  <PropDescription>
    Column width when app width >= 1200px
  </PropDescription>
  <PropOptions>
    <PropOption value="5" label="5 %" />
    <PropOption value="10" label="10 %" />
    <PropOption value="15" label="15 %" />
    <PropOption value="20" label="20 %" />
    <PropOption value="25" label="25 %" />
    <PropOption value="30" label="30 %" />
    <PropOption value="33" label="33 %" />
    <PropOption value="35" label="35 %" />
    <PropOption value="40" label="40 %" />
    <PropOption value="45" label="45 %" />
    <PropOption value="50" label="50 %" />
    <PropOption value="55" label="55 %" />
    <PropOption value="60" label="60 %" />
    <PropOption value="65" label="65 %" />
    <PropOption value="66" label="66 %" />
    <PropOption value="70" label="70 %" />
    <PropOption value="75" label="75 %" />
    <PropOption value="80" label="80 %" />
    <PropOption value="85" label="85 %" />
    <PropOption value="90" label="90 %" />
    <PropOption value="95" label="95 %" />
    <PropOption value="100" label="100 %" />
  </PropOptions>
</PropBlock>
</PropGroup>
</div>


<!-- GENERATED /props -->

<!-- If applicable describe how properties are forwarded to a underlying component from Framework7, ECharts, etc.:
### Inherited Properties

-->

<!-- If applicable describe the slots recognized by the component and what they represent:
### Slots

#### `default`

The contents of the oh-grid-col.

-->

<!-- Add as many examples as desired - put the YAML in a details container when it becomes too long (~150/200+ lines):
## Examples

### Example 1

![](./images/oh-grid-col/example1.jpg)

```yaml
component: oh-grid-col
config:
  prop1: value1
  prop2: value2
```

### Example 2

![](./images/oh-grid-col/example2.jpg)

::: details YAML
```yaml
component: oh-grid-col
config:
  prop1: value1
  prop2: value2
slots
```
:::

-->

<!-- Try to clean up URLs to the forum (https://community.openhab.org/t/<threadID>[/<postID>] should suffice)
## Community Resources

- [Community Post 1](https://community.openhab.org/t/12345)
- [Community Post 2](https://community.openhab.org/t/23456)
-->
