| name | larkcard2-compose-interactable |
| description | Lark Card V2 interactive component reference — buttons, inputs, dropdowns, person pickers, date/time pickers, overflow menus, image pickers, and checkers. Use whenever composing or modifying Lark/Feishu message card JSON v2 with interactive elements that accept user input or trigger callbacks. Requires familiarity with larkcard2-compose-display for card structure and layout. |
Lark Card V2 — Interactive Components
This skill covers interactive components for Lark Card V2: elements that accept user input, trigger callbacks, or open URLs.
Prerequisite: For card structure basics, display components, and containers, see the larkcard2-compose-display skill.
Component Index
Common Interactive Patterns
behaviors Array
Most interactive components accept a behaviors array defining what happens on interaction:
"behaviors": [
{
"type": "open_url",
"default_url": "https://example.com",
"pc_url": "https://example.com/pc",
"ios_url": "https://example.com/ios",
"android_url": "https://example.com/android"
},
{
"type": "callback",
"value": { "key": "value" }
}
]
open_url: Opens a URL. default_url is required; platform-specific URLs are optional overrides.
callback: Sends a callback to your server with the value object as payload.
confirm Dialog
Attach a confirmation dialog before the action executes:
"confirm": {
"title": { "tag": "plain_text", "content": "Are you sure?" },
"text": { "tag": "plain_text", "content": "This action cannot be undone." }
}
Form Integration
When a component is placed inside a form container:
- Add
"name": "unique_field_name" — must be unique within the form.
- Set
"required": true to make the field mandatory on submit.
- Buttons use
"form_action_type": "submit" or "reset" to control form behavior.
disabled + disabled_tips
"disabled": true,
"disabled_tips": { "tag": "plain_text", "content": "You don't have permission" }
Greys out the component and shows a tooltip explaining why.
hover_tips
"hover_tips": { "tag": "plain_text", "content": "Click to approve" }
Shows a tooltip on hover (PC only).
Common width Values
"default" — auto-width based on content
"fill" — expand to fill available space
"[100,∞)px" — fixed pixel width, e.g. "200px" (minimum 100)