Popover

Installation

npx shadcn@latest add https://ui.timkit.cn/r/popover.json

Usage

import { Popover } from "@/components/ui/popover"

Examples

Popover · Real Time
Loading preview...
Popover · Open notifications
Loading preview...
Popover · Open notifications
Loading preview...
Popover · Interactive State
Loading preview...
Popover · Interactive State
Loading preview...
Popover · Previous tip
Loading preview...
Popover · Embed
Loading preview...
Popover · Send us feedback
Loading preview...
Popover · Interactive State
Loading preview...

Structured API

Component

popover

Logic

zag / popover

Runtime Frameworks

ReactVueWeappHTML

Supported Platforms

WebWeChat Mini Program
Configuration
PropTypeDefaultDescription
logic.provider*
enum (zag | native | none)
zagState and interaction provider used by this component.
logic.machine
string
popoverUnderlying state machine identifier when provider is zag.
platforms*
array
Web, WeChat Mini ProgramPlatforms officially supported by this schema.
frameworks*
array
React, Vue, Weapp, HTMLFramework demos/code currently available in registry files.
dependencies
array
@timui/core, @zag-js/popper, @zag-js/reactRuntime package dependencies required by this registry item.
optionalPeerDependencies
array
-Optional peer dependencies used by this registry item.
registryDependencies
array
use-machineDependent Timkit registry components/hook entries.
Props
PropTypeDefaultDescription
open
boolean
-The controlled open state.
defaultOpen
boolean
-The default open state.
modal
boolean
falseWhether the popover is modal.
Events
PropTypeDefaultDescription
onOpenChange
event
-Event handler called when the open state changes.
Slots
PropTypeDefaultDescription
default
slot
-The popover core components
Parts
PropTypeDefaultDescription
root*
root
-The popover container
trigger
part
-The toggle button
anchor
part
-The anchoring element
content
part
-The popover content
This API reference is generated from `/packages/core` component schemas to keep React/Vue/Weapp docs consistent.

Extended notes are not available for this component yet.

Popover

Installation

npx shadcn@latest add https://ui.timkit.cn/r/popover.json

Usage

import { Popover } from "@/components/ui/popover"

Examples

Popover · Real Time
Loading preview...
Popover · Open notifications
Loading preview...
Popover · Open notifications
Loading preview...
Popover · Interactive State
Loading preview...
Popover · Interactive State
Loading preview...
Popover · Previous tip
Loading preview...
Popover · Embed
Loading preview...
Popover · Send us feedback
Loading preview...
Popover · Interactive State
Loading preview...

Structured API

Component

popover

Logic

zag / popover

Runtime Frameworks

ReactVueWeappHTML

Supported Platforms

WebWeChat Mini Program
Configuration
PropTypeDefaultDescription
logic.provider*
enum (zag | native | none)
zagState and interaction provider used by this component.
logic.machine
string
popoverUnderlying state machine identifier when provider is zag.
platforms*
array
Web, WeChat Mini ProgramPlatforms officially supported by this schema.
frameworks*
array
React, Vue, Weapp, HTMLFramework demos/code currently available in registry files.
dependencies
array
@timui/core, @zag-js/popper, @zag-js/reactRuntime package dependencies required by this registry item.
optionalPeerDependencies
array
-Optional peer dependencies used by this registry item.
registryDependencies
array
use-machineDependent Timkit registry components/hook entries.
Props
PropTypeDefaultDescription
open
boolean
-The controlled open state.
defaultOpen
boolean
-The default open state.
modal
boolean
falseWhether the popover is modal.
Events
PropTypeDefaultDescription
onOpenChange
event
-Event handler called when the open state changes.
Slots
PropTypeDefaultDescription
default
slot
-The popover core components
Parts
PropTypeDefaultDescription
root*
root
-The popover container
trigger
part
-The toggle button
anchor
part
-The anchoring element
content
part
-The popover content
This API reference is generated from `/packages/core` component schemas to keep React/Vue/Weapp docs consistent.

Extended notes are not available for this component yet.