Skip to content

Peek Popover

A compact disclosure opens into a softly hinged floating surface.

LIVE PREVIEWInteract with the component
Just React. No extra dependencies.

Copy the component and its CSS module into your project.

CSS Modules

Usage

Matches your current playground settings.

jsx
import PeekPopover from "./PeekPopover";
export default function Example() {
return (
<PeekPopover
trigger={"Studio notes"}
children={"Made to be explored.\n\nA small space for useful context, links, or a little more detail."}
defaultOpen={true}
label={"Studio notes"}
color={"#d9b89c"}
background={"#302720"}
placement={"bottom"}
disabled={false}
/>
);
}

Using Peek Popover

Use trigger for the button label and children for useful supporting content. Reserve space around the trigger and choose top or bottom placement to suit the surrounding layout.

The panel closes on Escape, outside interaction or focus leaving the component. Escape returns focus to the trigger; open and onOpenChange allow application-controlled visibility.

Props

NameTypeRequiredDefaultDescription
triggerReactNodeNoundefinedContent of the disclosure button.
childrenReactNodeNoundefinedPopover content, including links and controls.
openbooleanNoundefinedControlled disclosure state.
defaultOpenbooleanNofalseInitial uncontrolled state.
onOpenChangefunctionNoundefinedReceives the requested open state.
labelstringNo"Details"Accessible panel name and fallback trigger label.
colorstringNo"#d9b89c"Text and border colour.
backgroundstringNo"#302720"Surface colour.
placement"top" | "bottom"No"bottom"Side of the trigger on which the panel appears.
disabledbooleanNofalseDisable the trigger.
classNamestringNo""Additional classes on the root element.
styleCSSPropertiesNoundefinedInline styles for sizing, typography and appearance.

Related components

Slide Drawer

Overlays

A full-height side panel slides over a softened backdrop with native modal focus.

A searchable command menu with grouped actions and keyboard navigation.

Nebula Modal

Overlays

A controlled dialog with a soft coloured backdrop.

Lava Lamp

Backgrounds

Warm liquid forms merge and drift inside a softly lit glass lamp.