Blossom UI

Popover

Popover component anchored to a button, with placement, alignment and dismiss on Escape or outside click.

How to use it

Run npx @blossomui/react add popover, or copy src/components/UI/Popover/Popover.tsx into your React project and import it.

import { Popover } from './components/ui/Popover'

Props

PopoverProps

PropTypeDescription
triggerClassNamestringClasses of the button that opens it. Without them it has a border and a padding.
trigger (required)ReactNodeContent of the button that toggles the popover.
children (required)ReactNodeContent of the popover.
titlestring
placement'bottom' | 'top'
align'start' | 'end'
widthstringWidth of the panel, as a Tailwind class.

Getting started

  • Introduction
  • Installation
  • Changelog

Customization

  • Colors
  • Brand color
  • Texts and translation

Components

  • Accordion
  • Alert dialog
  • Alerts
  • Avatar
  • Badges
  • Banner
  • Breadcrumb
  • Buttons
  • Calendar
  • Cards
  • Carousel
  • Charts
  • Chip input
  • Collapsible
  • Color picker
  • Combobox
  • Command palette
  • Context menu
  • Copy button
  • Date picker
  • Drawer
  • Dropdown
  • Empty state
  • File upload
  • Footer
  • Forms
  • Hover card
  • Jumbotron
  • KBD
  • Menubar
  • Modal
  • Navbar
  • Navigation menu
  • Number input
  • OTP input
  • Pagination
  • Popover
  • Pricing
  • Progress
  • Rating
  • Resizable panels
  • Scroll area
  • Segmented control
  • Separator
  • Sidebar
  • Skeleton
  • Slider
  • Spinners
  • Stats
  • Stepper
  • Survey
  • Table
  • Tabs
  • Time picker
  • Timeline
  • Timer button
  • Toasts
  • Tooltip
  • Transfer list
  • Tree