# Prop aliases

## What is a "prop alias"?

Prop alias is a prop name shorthand that compiles into a single or multiple CSS properties.

This feature is designed for convenience and development speed. These props can be assigned to any component exposed by the library, including the area components generated from your composition template strings.

{% hint style="info" %}
Values of prop aliases can be applied conditionally. **See** [**Responsive props**](https://redd.gitbook.io/atomic-layout/fundamentals/responsive-props).
{% endhint %}

Each prop alias is associated with a single, or multiple corresponding CSS properties. See the list of all aliases and the corresponding CSS properties in the tables below.

## Grid

| **Prop name**  | **CSS property**                                                                                  |
| -------------- | ------------------------------------------------------------------------------------------------- |
| `areas`        | [`grid-template-areas`](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas)     |
| `template`     | [~~`grid-template-areas`~~](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas) |
| `templateCols` | [`grid-template-columns`](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns) |
| `templateRows` | [`grid-template-rows`](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows)       |
| `gap`          | [`grid-gap`](https://developer.mozilla.org/en-US/docs/Web/CSS/gap)                                |
| `gapCol`       | [`grid-column-gap`](https://developer.mozilla.org/en-US/docs/Web/CSS/column-gap)                  |
| `gapRow`       | [`grid-row-gap`](https://developer.mozilla.org/en-US/docs/Web/CSS/row-gap)                        |
| `col`          | [`grid-column`](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column)                     |
| `colStart`     | [`grid-column-start`](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-start)         |
| `colEnd`       | [`grid-column-end`](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-end)             |
| `row`          | [`grid-row`](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row)                           |
| `rowStart`     | [`grid-row-start`](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-start)               |
| `rowEnd`       | [`grid-row-end`](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-end)                   |
| `autoRows`     | [`grid-auto-rows`](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-rows)               |
| `autoCols`     | [`grid-auto-columns`](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-columns)         |
| `autoFlow`     | [`grid-auto-flow`](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow)               |

## Alignment

| **Prop name**    | **CSS property**                                                                      |
| ---------------- | ------------------------------------------------------------------------------------- |
| `order`          | [`order`](https://developer.mozilla.org/en-US/docs/Web/CSS/order)                     |
| `flexDirection`  | [`flex-direction`](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction)   |
| `flexShrink`     | [`flex-shrink`](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-shrink)         |
| `flexGrow`       | [`flex-grow`](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-grow)             |
| `flexWrap`       | [`flex-wrap`](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap)             |
| `align`          | [`align-self`](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self)           |
| `alignItems`     | [`align-items`](https://developer.mozilla.org/en-US/docs/Web/CSS/align-items)         |
| `alignContent`   | [`align-content`](https://developer.mozilla.org/en-US/docs/Web/CSS/align-content)     |
| `justify`        | [`justify-self`](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-self)       |
| `justifyItems`   | [`justify-items`](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items)     |
| `justifyContent` | [`justify-content`](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content) |
| `place`          | `place`                                                                               |
| `placeItems`     | [`place-items`](https://developer.mozilla.org/en-US/docs/Web/CSS/place-items)         |
| `placeContent`   | [`place-content`](https://developer.mozilla.org/en-US/docs/Web/CSS/place-content)     |

## Dimensions

| **Prop name** | **CSS property** |
| ------------- | ---------------- |
| `minHeight`   | `min-height`     |
| `maxHeight`   | `max-height`     |
| `height`      | `height`         |
| `minWidth`    | `min-width`      |
| `maxWidth`    | `max-width`      |
| `width`       | `width`          |

## Spacing

| **Prop name**       | **CSS property**                   |
| ------------------- | ---------------------------------- |
| `margin`            | `margin`                           |
| `marginVertical`    | `margin-top` and `margin-bottom`   |
| `marginHorizontal`  | `margin-right` and `margin-left`   |
| `marginTop`         | `margin-top`                       |
| `marginRight`       | `margin-right`                     |
| `marginBottom`      | `margin-bottom`                    |
| `marginLeft`        | `margin-left`                      |
| `padding`           | `padding`                          |
| `paddingVertical`   | `padding-top` and `padding-bottom` |
| `paddingHorizontal` | `padding-right` and `padding-left` |
| `paddingTop`        | `padding-top`                      |
| `paddingRight`      | `padding-right`                    |
| `paddingBottom`     | `padding-bottom`                   |
| `paddingLeft`       | `padding-left`                     |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://redd.gitbook.io/atomic-layout/fundamentals/prop-aliases.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
