Skip to content

pantoken-root / renderers/web-components/src / contextView

變數: contextView ​

const contextView: ElementDefinition

Alpha(內測)

<instui-context-view> — a callout surface with a caret. The host itself is a native [popover] (top layer + light-dismiss), so a light-DOM popovertarget/command button can toggle it by id. Position it near its trigger with CSS anchor positioning where supported; otherwise it centres in the top layer. Content goes in the default slot.

範例 ​

html
<instui-button popovertarget="cv">詳細資訊</instui-button>
<instui-context-view id="cv">關於此項目的更多資訊。</instui-context-view>