Holiday sale: 40% off Pro with code · limited offer · ends Dec 31
See ProA reading card with custom text selection: drag across words, double click a word, triple click a paragraph or long press on touch, then adjust the range with round-tipped handles while a glass loupe follows above the pointer and shows the text truly magnified, rendered live from the same content. When you let go, a frosted edit menu springs out of the selection with Copy, Highlight, Look up and Share, and highlights persist as marker strokes. Shift with arrow keys extends the selection, Ctrl or Command with A and C select and copy, and reduced motion keeps the loupe and menu static.
Included in Pro and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
The copied code, markdown and prompt include the values you set here.
import { TextLoupeSelection } from "@/components/hyperblur-pro/text-loupe-selection"
<TextLoupeSelection />
<TextLoupeSelection
demo={false}
paragraphs={["First paragraph...", "Second paragraph..."]}
onSelectionChange={(t) => setQuote(t)}
/>| Prop | Type | Default | Description |
|---|---|---|---|
| backdrop | string | "https://images.unsplash.com/photo-1517842645767-c639042777db" | Photo behind the glass reading card. |
| title / byline / paragraphs | string / string / string[] | a short essay | Content of the card; paragraphs are split into selectable words. |
| accent | string | "#0a84ff" | Selection tint, handles, drop cap and focus ring. |
| highlight | string | "#ffe27a" | Marker color used by the Highlight action. |
| magnification | number | 1.6 | Zoom factor of the loupe. |
| actions | { id, label, onPress?(text) }[] | Copy, Highlight, Look up, Share | Replace the edit menu items; onPress receives the selected text. |
| onSelectionChange | (text: string) => void | undefined | Called with the selected text whenever the range changes. |
| demo | boolean | true | Start with a phrase selected, the menu open and the loupe resting on the end handle. |
| appearance | "light" | "dark" | "auto" | "light" | Paper tint of the card and loupe. |
| refraction | number | 1 | Lens strength of the card, menu and loupe glass. |
Source code is included in Pro and above