> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stac.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# StacAlignmentDirectional

> Documentation for StacAlignmentDirectional

# StacAlignmentDirectional

Stac AlignmentDirectional allows you to handle alignment widget using JSON.

The `alignment` property determines where the child is positioned within the box:

| Value          | Description                               |
| -------------- | ----------------------------------------- |
| `topStart`     | Aligns the child to the top-start corner. |
| `topCenter`    | Aligns the child to the top-center.       |
| `topEnd`       | Aligns the child to the top-end corner.   |
| `centerStart`  | Aligns the child to the center-start.     |
| `center`       | Centers the child in the box.             |
| `centerEnd`    | Aligns the child to the center-end.       |
| `bottomStart`  | Aligns the child to the bottom-start.     |
| `bottomCenter` | Aligns the child to the bottom-center.    |
| `bottomEnd`    | Aligns the child to the bottom-end.       |

## Example

<CodeGroup>
  ```dart Dart theme={null}
  StacFittedBox(alignment: StacAlignmentDirectional.center)
  ```

  ```json JSON theme={null}
  {
    "type": "fittedBox",
    "alignment": "center"
  }
  ```
</CodeGroup>
