Overview
ApprovalCard is the card the AI chat shows when an action waits for a person’s approval. The chat also uses it to ask a question or show a form. It has a header with a title and an optional icon, a content area showing what the person reviews, and a footer with an optional hint and the buttons that answer.
Usage
contentVariant, for content that is not a simple block.
Header
The header showsicon and title. A long title wraps instead of being cut, so a question reads in full. title takes any node: to show the record an action changes, pass the text and a chip together in a row. Leave both empty for a card without a header.
Content
The content sits in a bordered box on the primary background, with inner spacing, by default. UsecontentVariant="list" for a list that draws its own rows edge to edge inside the box, and contentVariant="plain" for content that draws its own surface, such as an email editor. Several plain children are spaced like sections.
Footer
The footer appears only when you passhint or actions. hint sits at the start of the row: supporting text, the outcome of a decision, or a small control such as the pager above. Name the primary button after the action it runs and put it last. Your application owns the labels, their translations and the loading and disabled states.
Docking
ApprovalCard is built on Card, so a host docks it onto the surface below by setting --dock-bottom-border-width and --dock-bottom-radius on an ancestor. The AI chat does this above its composer. Cards nested in an ApprovalCard never dock.
Native integration
Native attributes,className, style, and ref target the root div, a Card.Root. Use render to compose a different root element. Unlike a plain Card.Root, the root inherits its text color and does not clip its content. The icon is decorative and hidden from assistive technology.
Props
Footer controls that answer the request, usually small Buttons with the primary action last. Omit them and hint for a card without a footer.
How the content is framed: ‘boxed’ is a bordered box on the primary background with inner spacing, ‘list’ the same box without inner spacing for lists that draw their own rows, ‘plain’ no box. Defaults to ‘boxed’.
Optional node at the start of the footer, such as supporting text, the outcome of a decision or a pager.
Element or callback composition for the root.