Reactolith UI Getting Started Introduction Installation Usage Layout Aspect Ratio Card Resizable Scroll Area Separator Direction Provider Forms Button Button Group Calendar Checkbox Combobox Field Input Input Group Input OTP Label Native Select Radio Group Select Slider Switch Textarea Toggle Toggle Group Data Display Accordion Avatar Badge Carousel Chart Collapsible Item Kbd Table Feedback Alert Empty Progress Skeleton Sonner Spinner Overlay Alert Dialog Context Menu Dialog Dropdown Menu Hover Card Popover Sheet Tooltip Navigation Breadcrumb Command Menubar Navigation Menu Pagination Sidebar Tabs

Popover

Displays rich content in a portal, triggered by a button.

Preview

Open Popover Dimensions Set the dimensions for the layer.
Width
Height

Usage

<ui-popover>
  <ui-popover-trigger>Open Popover</ui-popover-trigger>
  <ui-popover-content class="w-80">
    <ui-popover-header>
      <ui-popover-title>Dimensions</ui-popover-title>
      <ui-popover-description>Set the dimensions for the layer.</ui-popover-description>
    </ui-popover-header>
    <div class="grid gap-2">
      <div class="space-y-1">
        <ui-label>Width</ui-label>
        <ui-input placeholder="100%"></ui-input>
      </div>
      <div class="space-y-1">
        <ui-label>Height</ui-label>
        <ui-input placeholder="auto"></ui-input>
      </div>
    </div>
  </ui-popover-content>
</ui-popover>

Sub-components

<ui-popover> <ui-popover-trigger> <ui-popover-content> <ui-popover-header> <ui-popover-title> <ui-popover-description>

Props

<ui-popover-content>

PropTypeDefaultDescription
align"start" | "center" | "end""center"Alignment of the content.

All components also accept standard HTML attributes (class, id, style, data-*, aria-*, etc.) which are passed through to the underlying element.