Yamada UIにスターをあげる

スター
Yamada UIYamada UIv1.5.1

Tooltip

Tooltipは、要素の補足など短い情報を表示するコンポーネントです。

ソース@yamada-ui/tooltip

Props

TooltipProps

as

タイプ

"symbol" | "object" | "clipPath" | "filter" | "mask" | "marker" | "text" | "g" | "p" | "big" | "link" | "small" | "sub" | "sup" | "style" | "animate" | "div" | "a" | "abbr" | "address" | ... 148 more ... | "textPath"

closeDelay

説明

The delay before hiding the tooltip.

タイプ

number

デフォルト

0

closeOnClick

説明

If true, the tooltip will hide on click.

タイプ

boolean

デフォルト

false

closeOnEsc

説明

If true, the tooltip will hide on pressing Esc key.

タイプ

boolean

デフォルト

true

closeOnMouseDown

説明

If true, the tooltip will hide while the mouse is down.

タイプ

boolean

デフォルト

false

closeOnPointerDown

説明

If true, the tooltip will hide while the pointer is down.

タイプ

boolean

デフォルト

false

closeOnScroll

説明

If true, the tooltip will hide on scroll.

タイプ

boolean

デフォルト

false

defaultIsOpen

説明

If true, the tooltip will be initially shown.

タイプ

boolean

duration

説明

The animation duration.

タイプ

number | Partial<Record<"exit" | "enter", number>>

gutter

説明

The distance or margin between the reference and popper. It is used internally to create an offset modifier.

タイプ

UIValue<number>

デフォルト

8

isDisabled

説明

If true, the tooltip will be disabled.

タイプ

boolean

デフォルト

false

isOpen

説明

If true, the tooltip will be shown.

タイプ

boolean

label

説明

The label of the tooltip.

タイプ

type ONLY_FOR_FORMAT = | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal

modifiers

説明

Array of popper.js modifiers. Check the docs to see the list of possible modifiers you can pass.

タイプ

Partial<Modifier<string, any>>[]

ドキュメント

https://popper.js.org/docs/v2/modifiers/

offset

説明

The main and cross-axis offset to displace popper element from its reference element.

タイプ

[number, number]

onClose

説明

Callback to run when the tooltip hides.

タイプ

() => void

onOpen

説明

Callback to run when the tooltip shows.

タイプ

() => void

openDelay

説明

The delay before showing the tooltip.

タイプ

number

デフォルト

0

placement

説明

The placement of the popper relative to its reference.

タイプ

UIValue<Placement>

デフォルト

'bottom'

portalProps

説明

Props for portal component.

タイプ

Pick<PortalProps, "appendToParentPortal" | "containerRef">

withPortal

説明

If true, the element will be transported to the end of document.body.

タイプ

boolean

GitHubでこのページを編集する

PopoverTour