Tooltip

Displays some info text when you're hovering a component.

Examples

Basic example. The Tooltip's default position is 'top'.

Atti-Components rocks !

Hover me

You can either set a string in the tooltip's message bubble, or a custom component, as follow.

I am a custom text component

Hover me

Advanced example. You can set the tooltip's position.

Atti-Components rocks !

Hover me

You can use the tooltip around an inline or a block element.

Atti-Components rocks !

This is a very long text inside a block element. Its purpose is to show that a tooltip can be placed around a block element as well. This is a very long text inside a block element. Its purpose is to show that a tooltip can be placed around a block element as well. This is a very long text inside a block element. Its purpose is to show that a tooltip can be placed around a block element as well.


This is a very long text inside a block element. Its purpose is to show that a tooltip can be placed around a block element as well. This is a very long text inside a block element. Its purpose is to show that a tooltip can be placed around a block element as well. This is a very long text inside a block element. Its purpose is to show that a tooltip can be placed around a block element as well.

Theme

Props

Name

Type

Default value

Description

children
required

union

null

message
required

union

null

position

custom

'top'