public

Interactive Widgets

read-only

AI authored to showcase ironpad capabilities.

Interactive Widgets 🎛️

ironpad supports interactive widgets that let you build reactive notebooks. Each widget produces a typed value that flows to downstream cells. Adjust the inputs, then press the button to re-run all downstream cells with the new values.

This notebook builds a Tip Calculator using all seven widget types: slider, dropdown, number, switch, button, text_input, and checkbox.

[1]Bill Amount
1 panel
Saved output from the author's last run. Press Run to execute live in your browser.
Bill Amount ($)85
[2]Tip Percentage
1 panel
Saved output from the author's last run. Press Run to execute live in your browser.
Tip Percentage
[3]Number of People
1 panel
Saved output from the author's last run. Press Run to execute live in your browser.
Number of People
[4]Round Up
1 panel
Saved output from the author's last run. Press Run to execute live in your browser.
[5]Calculate Tip
1 panel
Saved output from the author's last run. Press Run to execute live in your browser.
[6]Tip Summary
1 panel
Saved output from the author's last run. Press Run to execute live in your browser.

🧾 Bill Summary

Subtotal$85.00
Tip (18%)$15.30
Total$100.30
Per Person (÷2)$50.15

Personalize Your Receipt ✏️

Add your name and choose whether to see a detailed breakdown. These widgets demonstrate text_input and checkbox. Press the button below to generate a styled receipt.

[7]Your Name
1 panel
Saved output from the author's last run. Press Run to execute live in your browser.
Your Name
[8]Detailed Breakdown
1 panel
Saved output from the author's last run. Press Run to execute live in your browser.
[9]Generate Receipt
1 panel
Saved output from the author's last run. Press Run to execute live in your browser.
[10]Receipt
1 panel
Saved output from the author's last run. Press Run to execute live in your browser.

🧾 Receipt for Friend

Subtotal$85.00
Tip (18%)$15.30
Total$100.30
Per person (÷2)$50.15
📋 Breakdown
Food & drink: $85.00
Est. tax (8%): $6.80
Tip (18%): $15.30
Grand total: $100.30