Documentation
Components
Popover

Popover

Position

Valid values: top-center bottom-center left-center right-center top-left top-right bottom-left bottom-right left-top right-top left-bottom right-bottom

Use the specified value to modify the position of the popover at the top-center class position of this line.

<div class="popover">
  <label class="trigger btn solid" tabindex="0">click</label>
  <div class="content top-center" tabindex="0">
    <div class="arrow"></div>
    <div class="p-4 text-sm">Popover content.</div>
  </div>
</div>
Preview

Code

HTML

Code

JSX/TSX
Popover content.
Popover content. With right place!
Popover content. With right place!
Popover content. With right place!
Popover content. With right place!
Popover content. With right place!
Popover content. With right place!
Popover content. With right place!
Popover content. With right place!
Popover content. With right place!
Popover content. With right place!
Popover content. With right place!
Popover content. With right place!

Force open

Apply open class on it to keep popover open.

Preview

Code

HTML

Code

JSX/TSX
Popover content.

Hover to show

The default function way of popover component is click the trigger, but you can apply hover-show class on it to change this behavior.

Preview

Code

HTML

Code

JSX/TSX
Popover content.