BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Iconiq UI/b-popover

Popover (Base UI)

iconiq-ui/b-popover
FreeComponent

Popover with the same Iconiq API layered over Base UI popover primitives, preserving side-aware panel motion, optional anchor support, and size-aware content transitions.

Live preview

live · rendered by the registry
Rendered by Iconiq UI on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://www.iconiqui.com/r/b-popover.json

Source

b-popover.tsxwww.iconiqui.com/r/b-popover.json · first 6 KB
1"use client";
2
3import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
4import { motion } from "motion/react";
5import * as React from "react";
6
7import { cn } from "@/lib/utils";
8
9const controlCornerClassName =
10 "rounded-lg supports-[corner-shape:squircle]:corner-squircle supports-[corner-shape:squircle]:rounded-[11px]";
11
12const surfaceCornerClassName =
13 "rounded-lg supports-[corner-shape:squircle]:corner-squircle supports-[corner-shape:squircle]:rounded-[12px]";
14
15const popoverThemeClassName =
16 "[--po-surface:#ffffff] [--po-foreground:#111111] [--po-border:#e3e7ec] [--po-ring:rgba(17,17,17,0.16)] dark:[--po-surface:#111111] dark:[--po-foreground:#f6f3ec] dark:[--po-border:#2b2a25] dark:[--po-ring:rgba(246,243,236,0.18)]";
17
18const popoverPanelClassName = cn(
19 surfaceCornerClassName,
20 "z-50 w-72 transform-gpu border border-[color:var(--po-border)] bg-[color:var(--po-surface)] p-4 text-[color:var(--po-foreground)] shadow-none outline-none"
21);
22
23const popoverTriggerClassName = cn(
24 controlCornerClassName,
25 "inline-flex min-h-11 min-w-11 touch-manipulation items-center justify-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:color-mix(in_oklch,var(--po-ring),transparent_50%)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--po-surface)]"
26);
27
28type Side = "top" | "right" | "bottom" | "left";
29type Align = "start" | "center" | "end";
30type CollisionPadding = React.ComponentPropsWithoutRef<
31 typeof PopoverPrimitive.Positioner
32>["collisionPadding"];
33
34type PopoverContextValue = {
35 actionsRef: React.RefObject<PopoverPrimitive.Root.Actions | null>;
36 open: boolean;
37 contentId: string;
38 triggerId: string;
39 getAnchorNode: () => HTMLElement | null;
40 setAnchorNode: (node: HTMLElement | null) => void;
41 setTriggerNode: (node: HTMLElement | null) => void;
42};
43
44type PopoverTriggerElementProps = React.HTMLAttributes<HTMLElement> & {
45 className?: string;
46};
47
48type PopoverTriggerChildElement = React.ReactElement<
49 PopoverTriggerElementProps & React.RefAttributes<HTMLElement>
50>;
51
52type PopoverAnchorElementProps = React.HTMLAttributes<HTMLElement> & {
53 className?: string;
54};
55
56type PopoverAnchorChildElement = React.ReactElement<
57 PopoverAnchorElementProps & React.RefAttributes<HTMLElement>
58>;
59
60type PopupRenderProps = React.HTMLAttributes<HTMLDivElement> & {
61 children?: React.ReactNode;
62 className?: string;
63 ref?: React.Ref<HTMLDivElement>;
64 style?: React.CSSProperties;
65};
66
67// … truncated

What it pulls in

npm packages

  • @base-ui/react
  • motion

Files it writes

  • b-popover.tsx

Facts

Registry
Iconiq UI
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-03
Last confirmed
today

Go to the source

Docs on Iconiq UI www.iconiqui.com edwinvakayil/iconiq on GitHub Raw registry item This item as JSON

More from Iconiq UI

All 119 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionIconiq UIComponentsFree2 deps
AI Inputai-inputIconiq UIComponentsFree3 deps
AlertalertIconiq UIComponentsFree2 deps
AvataravatarIconiq UIComponentsFree3 deps
Accordion (Base UI)b-accordionIconiq UIComponentsFree2 deps
Alert Dialog (Base UI)b-alert-dialogIconiq UIComponentsFree3 deps
Autocomplete (Base UI)b-autocompleteIconiq UIComponentsFree3 deps
Avatar (Base UI)b-avatarIconiq UIComponentsFree2 deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex