Tip

Tip is a component that displays supplementary information with a built-in icon trigger.

煉獄杏寿郎

Usage

import { Tip } from "@yamada-ui/react"
<Tip />

Change Status

To change the status, set status to "help", "info", etc. The default is "help".

Help
Info
Success
Warning
Error

Change Color Scheme

Help
Info
Success
Warning
Error

Change Duration

To change the duration, set duration to a number (seconds).

煉獄杏寿郎

Add Delay

To delay showing or hiding, set openDelay or closeDelay to a number (milliseconds).

Delay Open 1000ms
Delay Close 1000ms

Change Offset

To change the offset, set gutter or offset values.

gutter sets the simple distance from the element, and offset sets [horizontal, vertical].

煉獄杏寿郎
煉獄杏寿郎

Change Animation

To change the show or hide animation, set animationScheme to "scale", "block-end", etc. The default is "scale".

Scale
Block End
Inline Start
Inline End
Block Start

Change Placement

To change the placement, set placement to "end", "center-start", etc. The default is "start".

Start
Start Start
Start End
Start Center
End
End Start
End End
End Center
Center Start
Center End

Disable

To disable the tooltip, set disabled to true.

煉獄杏寿郎

Always Open

To always show the tooltip, set open to true.

煉獄杏寿郎

Customize Icon

To customize the icon, set icon to an icon element.

煉獄杏寿郎

Control

煉獄杏寿郎

Props