用于显示富文本内容的浮动元素,由按钮触发。
¥API Reference
此组件继承了 弹出框基础组件 的属性。
¥This component inherits props from the Popover primitive.
¥Root
包含弹出窗口的所有部分。
¥Contains all the parts of a popover.
¥Trigger
封装将打开弹出窗口的控件。
¥Wraps the control that will open the popover.
¥Content
包含在打开的弹出窗口中呈现的内容。此组件基于 div
元素。
¥Contains content to be rendered in the open popover. This component is based on the div
element.
¥Close
封装将关闭弹出窗口的控件。
¥Wraps the control that will close the popover.
¥Examples
¥Size
使用 size
属性控制弹出窗口的大小。它会影响内容的 padding
和 border-radius
。与 width
/minWidth
/maxWidth
和 height
/minHeight
/maxHeight
props 结合使用,以控制弹出窗口的大小。
¥Use the size
prop to control size of the popover. It will affect the padding
and border-radius
of the Content.
Use it in conjunction with the width
/minWidth
/maxWidth
and height
/minHeight
/maxHeight
props to control the size of the popover.
¥With inset content
使用 插入 组件将内容与弹出窗口边缘对齐。
¥Use the Inset component to align content flush with the sides of the popover.