Components

工具提示

通过指针或焦点为控件提供上下文信息的浮动元素。

<Tooltip content="Add to library">
<IconButton radius="full">
<PlusIcon />
</IconButton>
</Tooltip>

API 参考

¥API Reference

此组件继承并合并了 Radix Tooltip 基础组件 门户内容 部分的属性。支持 常用边距属性

¥This component inherits and merges props from the Radix Tooltip primitive Root, Portal and Content parts. It supports common margin props.

PropTypeDefault
content*
ReactNode
No default value
width
Responsive<string>
No default value
minWidth
Responsive<string>
No default value
maxWidth
Responsive<string>
"360px"