--- title: Mobile Card Builder components description: Learn about the components that make up mobile cards locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/mobile/mcb-elements.html release: australia topic_type: reference last_updated: "2026-03-12" reading_time_minutes: 6 breadcrumb: [User interface, Mobile Card Builder, Building tools, Building mobile apps, Mobile Platform] --- # Mobile Card Builder components Learn about the components that make up mobile cards ## Adding and removing components ## Buttons Button components allow users to perform an action when the button is selected. Use buttons to add actions to your cards.
| Property | Description |
|---|---|
| Element ID | The button's unique JSON ID attribute. |
| Display | |
| Height | Height of your button in pixels |
| Width | Width of your button in pixels. If this property is left blank, the button fills the available space. |
| Corner radius | The corner radius of your button. Increase this value to create rounded corners for your button. |
| Margin top | The top margin of your button in pixels |
| Margin bottom | The bottom margin of your button in pixels |
| Margin left | The left margin of your button in pixels |
| Margin right | The right margin of your button in pixels |
| Border width | Width of your button’s border in pixels. |
| Button properties | |
| Format | Determine whether your button will appear with a text label, icon, or both. Select from the following options: - Label - Icon - Label and icon |
| Label | The button's text label.**Note:** This option will only appear if either the **Label** or **Label and icon** format is selected. |
| Icon | The icon that will display on your button. Choose an icon from the provided drop-down list.**Note:** This option will only appear if either the **Icon** or **Label and icon** format is selected. |
| Accessible name | The alternative text that will be read aloud to people using assistive devices so that they know the purpose of the button.**Note:** This option will only appear if the **Icon** format is selected. |
| Actions | |
| Multiple | Create a menu of multiple different actions that users can choose from when they select the button. |
| Function | Choose either a Predefined or Configurable function. Configurable functions are taken from the sys\_sg\_button table. Available predefined functions: - Cancel - Continue - Log out |
| Button appearance | |
| Text and icon style | The formatting style of your text, icon, or both. |
| Background color variable | The button background’s color variable. |
| Background color | The button background’s color. The value for this property is an HTML color code, for example `#A0522D` for sienna. |
| Text and icon color variable | The button's text and icon’s color variable. |
| Text and icon color | The button's text and variable color. The value for this property is an HTML color code, for example `#A0522D` for sienna. |
| Border color variable | The button border’s color variable. |
| Border color | The button border's color. The value for this property is an HTML color code, for example `#A0522D` for sienna. |
| Property | Description |
|---|---|
| Properties | |
| Element ID | The container's unique JSON ID attribute. |
| Display | |
| Height | Height of your container in pixels |
| Width | Width of your container in pixels. If this property is left blank, the container fills the available space. |
| Margin top | The top margin of your container in pixels |
| Margin bottom | The bottom margin of your container in pixels |
| Margin left | The left margin of your container in pixels |
| Margin right | The right margin of your container in pixels |
| Corner radius | The corner radius of your container. Increase this value to create rounded corners for your container. |
| Appearance | |
| Container direction | Determines orientation direction of the components within the container. Select from these values:- Horizontal - Vertical |
| Alignment | Determines the alignment of the components within the container. Select from these values:- Stretch - Center - Left - Right - Top - Bottom |
| Distribution | Determines the distribution of the components within the container. Select from these values:- Equal - Auto |
| Background type | The type of background the container will have. Select from these values:- None - Color - Image |
| Property | Description |
|---|---|
| Properties | |
| Element ID | The image's unique JSON ID attribute. |
| Display | |
| Height | Height of your image in pixels. |
| Width | Width of your image in pixels. |
| Margin top | The top margin of your image in pixels. |
| Margin right | The right margin of your image in pixels. |
| Margin bottom | The bottom margin of your image in pixels. |
| Margin left | The left margin of your image in pixels. |
| Corner radius | The corner radius of your image. Increase this value to create rounded corners for your image. |
| Image | |
| Use mapped field | Choose whether the image will use a mapped field. |
| Field value | The value of the mapped field for your image. This property is only visible if **Use mapped field** is selected. |
| Attachment | The attached image to use. This property is only visible if **Use mapped field** is not selected. |
| Image scaling | The scaling for your image. Select from these values:- Fill - Fit |
| Property | Description |
|---|---|
| Properties | |
| Element ID | The text's unique JSON ID attribute. |
| Display | |
| Field type | The type of text field. Select from these values:- Field value - Field label - Static text |
| Text value | The text that appears in the text component. This value is only used when you have selected **Static text** in the **Field type** property. |
| Height | Height of your text component in pixels. |
| Width | Width of your text component in pixels. |
| Margin top | The top margin of your text component in pixels. |
| Margin right | The right margin of your text component in pixels. |
| Margin bottom | The bottom margin of your text component in pixels. |
| Margin left | The left margin of your text component in pixels. |
| Appearance | |
| Text style | The formatting style of your text. |
| Text alignment | Alignment for the text in your component. Select from these values:- Left - Center - Right |
| Max number of lines | The maximum number of lines for the text in your element. |
| Text color variable | The color variable for your text. |
| Text color | The color of your text. The value for this property is an HTML color code, for example `#A0522D` for sienna. **Note:** You cannot change the background color of a text component, but you can place your text component within a container component, and change the container background color. |
| Property | Description |
|---|---|
| Properties | |
| Element ID | The video's unique JSON ID attribute. |
| Display | |
| Use mapped field | Choose whether the video will use a mapped field. |
| Field value | The value of the mapped field for your video. This property is only visible if **Use mapped field** is selected. |
| URL | The URL of the video to be embedded. This property is only visible if **Use mapped field** is not selected. |
| Playback mode | How the video will display on a mobile device. Select from these values:- Fullscreen - Inline |
| Width | Width of your video component in pixels. |
| Height | Height of your video component in pixels. |
| Margin top | The top margin of your video component in pixels. |
| Margin right | The right margin of your video component in pixels. |
| Margin bottom | The bottom margin of your video component in pixels. |
| Margin left | The left margin of your video component in pixels. |