<tap-card>

可展开的卡片,点击展开到全屏,在顶部下拉关闭。 expandable 插槽只在展开后渲染, 默认插槽中的第一个元素在展开时作为卡片头部。

Example

API

The first element in the default slot is treated as the card header during expansion. Its top padding, height, and min-height are animated to include the top safe area in fullscreen mode.

Shadow DOM; Extends GemElement

Other

Type Value
Slot unnamed, expandable
Part card, close
CSS State expand, press