1# Universal Attributes 2 3> **NOTE** 4> 5>The APIs of this module are supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version. 6 7## Common Attributes 8 9Common attributes are used to set component identities and appearance. 10 11| Name| Type| Default Value| Mandatory| Description| 12| -------- | -------- | -------- | -------- | -------- | 13| id | string | - | No| Unique ID of the component.| 14| style | string | - | No| Style declaration of the component.| 15| class | string | - | No| Style class of the component, which is used to refer to a style table.| 16| ref | string | - | No| Reference information of child elements or child components, which is registered with the parent component on **$refs**.| 17| disabled | boolean | false | No| Whether the component is disabled. If it is disabled, it cannot respond to user interactions.| 18| dir | string | auto | No| Component layout mode. Available values are as follows:<br>- **rtl**: right-to-left layout.<br>- **ltr**: left-to-right layout.<br>- **auto**: follows the system language environment.| 19 20 21## Rendering Attributes 22 23Rendering attributes are used to set whether a component is rendered. 24 25| Name| Type| Default Value| Description| 26| -------- | -------- | -------- | -------- | 27| for | Array | - | Expands the component based on the configured data list.| 28| if | boolean | - | Whether the component is added or removed.| 29| show | boolean | - | Whether the component is displayed or hidden.| 30 31> **NOTE** 32> 33> Do not set styles in attribute fields. 34