For the complete documentation index, see llms.txt. This page is also available as Markdown.

Popover

Popover Props

Name
Type
Default
Description

angle

boolean

true

Renders popover "angle"/"corner"

angleClass

string

undefined

Additional css class to add on "angle"/"corner" element

backdrop

boolean

true

Enables Popover backdrop (dark semi transparent layer behind)

colors

object

Object with Tailwind CSS colors classes

colors.bgIos

string

'bg-ios-light-surface-3 dark:bg-ios-dark-surface-3'

colors.bgMaterial

string

'bg-md-light-surface-3 dark:bg-md-dark-surface-3'

component

string

'div'

Component's HTML Element

opened

boolean

false

Allows to open/close Popover and set its initial state

size

string

'w-64'

Tailwind CSS size classes

target

string | HTMLElement | Ref

Popover target element. Popover will be positioned around this element

targetHeight

number

Virtual target element height (in px). Required without using real target element (target prop)

targetWidth

number

Virtual target element width (in px). Required without using real target element (target prop)

targetX

number

Virtual target element horizontal offset from left side of the screen. Required without using real target element (target prop)

targetY

number

Virtual target element vertical offset from top of the screen. Required without using real target element (target prop)

translucent

boolean

true

Makes Popover background translucent (with backdrop-filter: blur) in iOS theme

Popover Events

Name
Type
Description

backdropclick

function(e)

Click handler on backdrop element

Examples

Last updated