Card Base Container component setup

task brazil Updated Sep 10, 2026 5 min read card-component-uib-setup.md
Raw file servicenow.com

A Card Base Container component organizes specific information in a simple, easily scannable format. Use a Card Base Container to help the user make a decision or quickly view information. The component provides a border, card-level interactivity, and a default slot for holding card subcomponents.

Before you begin

This task assumes you have placed the component on the page and are ready to configure the properties and events. For instructions on accessing and using features in UI Builder, see Customize UI Builder pages using components.

Note: This document describes the latest component functionality. Go to the store to make sure you have the latest version of the component.

Role required: admin or ui_builder_admin

Procedure

  1. Define a label for your Card Base Container that differentiates it from other components in the content tree.

    A label makes finding the component easier in a large list of components. For instructions on using the content tree, see Manage UI pages and page variants. For instructions on using the content tree, see UI Builder tutorial.

    [Omitted image "card-content-tree.png"] Alt text: Page content tree containing a Card Base Container and showing its default slot.

  2. Select the Card Base Container component, using one of these methods:

    • Click anywhere within the component.
    • Select the Card Base Container label you created for your component in the content tree. The property fields appear in the Config tab in the setup panel on the right.
  3. Enter either static or dynamic input in the input fields.

    • Enter static values by typing in the content or selecting it from a drop-down list.
    • Enter dynamic input by selecting the appropriate button:

Parent Topic:UIB Setup Information

Card Base Container component properties

Configure the appearance and interactions of your Card Base Container with these properties.

To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type.

Note: (Optional) Add any of the following subcomponents in the default slot:

  • Card Base Header
  • Card Base Actions
  • Card Base Divider

Label[property]

Description

Size[size]

Defines the card's size. - Large ("lg")

  • Medium ("md")
  • Small ("sm")

Default: Large ("lg")

Interaction[interaction]

Sets whether the card can be clicked or selected.- None: Card can be neither clicked nor selected.

  • Click: Card can be clicked.
  • Select: Card can be selected.

Default: None

Selected[selected]

Indicates that the card is selected. Use only when Interaction is Select.Default: False

Sidebar[sidebar]

Specifies the color of the sidebar that appears along the side of the card. The value is an object with values for color and variant.Type: {color: ("ai" |"critical" | "high" | "warning" | "moderate" | "positive" | "info" | "low" | "magenta" | "pink" | "orange" | "yellow" | "brown" | "green" | "green-yellow" | "blue" | "gray" | "teal" | "purple"), variant: ("primary" | "secondary" | "tertiary")}

ARIA properties[configAria]

An object whose keys reference a specific HTML element within the Card Base Container. The available ARIA properties are as follows:- aria-braillelabel

  • aria-brailleroledescription
  • aria-colindextext
  • aria-description
  • aria-label
  • aria-placeholder
  • aria-roledescription
  • aria-rowindextext
  • aria-valuetext

If the card is configured to be clickable, then the following attributes must be assigned to the card: role="group" and aria-label="". This tells screen reader users that all the content in the card is one grouped element.

## Card Base Container component events

Select event handlers to configure the actions (events) provided with the Card Base Container component.

The Events tab shows the events used by the Card Base Container component. To view the available events, select + Add event mapping. Select the event in the list to add one or more event handlers.

Event handlers

The Events tab shows the events used by the Card Base Container component. To view the available events, select + Add event mapping. Select the event in the list to add one or more event handlers.

Event Description
Card clicked Dispatched when the card is clicked. Requires the Interaction property to be Click. No set payload. Handler and payload depend on what you want to happen when the card is clicked, which in turn depends on what component the card displays.
Card selected set Dispatched when the user toggles the selected status of the card. Requires the Interaction property to be Select. The payload is a boolean value indicating the selected status of the card.
Search documentation
Search document titles and file paths on the brazil branch