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 componentsNumbers & counters

Nutrition panel

Nutrition panel with a serving stepper that rescales values, a segmented energy ring, macro % of daily value bars and a compact chip variant.

Preview

Roast squash grain bowl

1 bowl · 385 g

1×
50 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 940 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 980 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9kcal
27% of 2,000 kcal
Macros% daily value
  • Protein15% of energy21 g42%
  • Carbohydrate49% of energy68 g26%
  • Fat36% of energy22 g31%
Saturated fat
3.1 g16%
Sugars
9.4 g10%
Fibre
8.2 g27%
Sodium
610 mg27%
Iron
5 mg26%
Potassium
720 mg21%

% of daily value against a 2,000 kcal reference day.

Compact, on a menu card
132kcalProtein4.2 gCarbs17 gFat5.1 g

Install

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

Props

PropTypeDefaultDescription
namestring—Food or dish name.
servingstring—What one serving is ("1 bowl").
servingGramsnumber—Weight of one serving in grams; shown scaled.
caloriesnumber—Energy in one serving, kcal.
macros{ protein, carbs, fat }—Grams per serving; also drives the energy split.
nutrientsNutrient[][]Further rows: key, label, amount, unit (g, mg, µg), optional daily reference.
defaultServingsnumber1Starting servings (uncontrolled).
servingsnumber—Controlled servings.
onServingsChange(servings: number) => void—Called when the stepper changes.
servingRange[min, max, step][0.5, 6, 0.5]Stepper bounds and step.
dailyCaloriesnumber2000Daily energy reference for the ring and % values.
macroDaily{ protein, carbs, fat }{ 50, 260, 70 }Daily references for the macro bars, grams.
variant"panel" | "chips""panel"Full panel, or a compact chip row.
localestring"en-US"Number formatting locale.

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 ↗