Skip to content
Pebble Pro is here at $49 one timeSee what’s included ↗
Pebble
ComponentsDocsMCPPricing
⌕ Find a component↗Log in
All components 673

Categories

Core inputs & forms46Buttons & actions33Navigation36Overlays & feedback49Data display33Charts & data viz40Cards & layout43Marketing blocks38App shells & pages37AI interfaces40Text & typography effects33Backgrounds & visual effects38Motion & transitions32Numbers & counters32Media34E-commerce333D & interactive36Themed sets40
Start with the essentials.Installation guide ↗Connect your agent ↗
← All componentsAI interfaces

Code Suggestion

An editor-like code view with inline ghost-text and diff-block AI suggestions, Accept (Tab), Reject (Esc) and Next, and a why popover.

Preview

analytics/retention.ts2 suggestions
Suggestion 1 of 2 at line 8. Tab to accept, Escape to reject, Alt+] for the next.
1import { groupBy } from "./group";23export function retentionByWeek(events: Event[]) {4 const cohorts = groupBy(events, (e) => startOfWeek(e.signupAt));5 return Object.entries(cohorts).map(([week, rows]) => ({6 week,7 users: new Set(rows.map((r) => r.userId)).size,
Changes to Suggested change: 1 addition, 0 deletions
Old lineNew lineChangeCode
@@ -8,0 +8,1 @@
8+added retained: rows.filter((r) => r.weeksActive >= 4).length,
1/2
8 }));9}1011function startOfWeek(date: Date) {12 const d = new Date(date);13 d.setDate(d.getDate() - d.getDay());14 return d.toISOString().slice(0, 10);15}
analytics/config.ts1 suggestion
Suggestion 1 of 1 at line 3. Tab to accept, Escape to reject.
1export const retention = {2 weeks: 4,
3 timezone: "UTC",
1/1

Focus the code and press Tab to accept, Esc to reject, ⌥] for the next.

Install

Pro source requires Pebble Pro. Try the full preview above.

Props

PropTypeDefaultDescription
filenamestring—Shown in the header.
codestring—Initial source; accepting suggestions edits a local copy.
suggestionsCodeSuggestionItem[]—{ id, line, kind: inline (ghost text) | block (diff), text, remove?, why? }, shown one at a time.
onAccept / onReject(suggestion, code?) => void—Accept (Tab) passes the updated code; Reject is Esc. Next is Alt+].

Pro component

Try the full preview above. Editable source and build guides require Pebble Pro.

Buy Pebble Pro — $49How source access works ↗
Pebble

Small details.
Better interfaces.

React components to explore, make your own, and build on.

Library

  • Components
  • Installation
  • Pricing

Resources

  • For agents
  • About
  • Support

Legal

  • License
  • Terms
  • Privacy
  • Final sale

Built by Pebble

A product of Praxys Solutions LLC ↗

Pebble Pro is live

$49 one time, lifetime updates ↗