# Location The location attributes set the alignment mode, layout direction, and position of a component. > **NOTE** > > The APIs of this module are supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. ## align align(value: Alignment) Sets the alignment mode of the component content in the drawing area. **Widget capability**: Since API version 9, this API is supported in ArkTS widgets. **System capability**: SystemCapability.ArkUI.ArkUI.Full **Parameters** | Name| Type | Mandatory| Description | | ------ | ------------------------------------------- | ---- | ------------------------------------------------------------ | | value | [Alignment](ts-appendix-enums.md#alignment) | Yes | Alignment mode of the component content in the drawing area.
This attribute is available only in the following components: **\**, **\