The simple reason for this abstraction was to simplify the popover's usage down to a one-liner at the minimum (<PopoverUI content="Hello" />), but can also be modified further through a small selection of props.
See the docs at shadcn or radix for more information on its usage.
PopoverUI-Example.tsx
<div className="_os flex items-center justify-between gap-25 border-b px-1"> <p className="text-muted-foreground shrink-0"> <PopoverUI className="min-w-[250px]" align="start" trigger={ <span className="border-b border-dashed pb-0.5">User agent</span> } showArrow content={ <div className="text-muted-foreground text-[0.7rem]"> <span> A User Agent (UA) is a computer program representing a person, example a browser (in Web context). A UA could also be a bot, download manager or another app accessing the web. </span> <Link className="mt-3 block underline hover:opacity-80" href="https://developer.mozilla.org/en-US/docs/Glossary/User_agent" > Learn More </Link> </div> } /> </p> <p className="">{userAgent}</p></div>