Gen UI Components

Rendered with fixture data. No API calls.

General

Savings, CDs, and mortgage calculators.

example_card

Renders a card with a title, summary, and optional link.

With URL

Example Result Title

A short description of what this card represents.

https://www.bankrate.com/mortgages/mortgage-rates/

Without URL

Result With No Link

Sometimes there is no URL to show.

savings_calculator

Renders an interactive high-yield savings account calculator. Invoke when the user asks how much they will earn in a savings account or asks about savings growth over time. For CDs, use cd_calculator instead.

Input phase

Savings Calculator
$
$
months
%

Default rate is Bankrate’s top offer as of July 2, 2026.

Output phase — with contributions

2-year savings account · 4.75% APY
$17,026balance
+$1,276in interest earned

Including $5,750 you add over time

Balance growth over time
MonthBalanceInterest earned
0$10,000$0
1$10,040$40
2$10,330$80
3$10,622$122
4$10,915$165
5$11,209$209
6$11,505$255
7$11,801$301
8$12,099$349
9$12,398$398
10$12,698$448
11$12,999$499
12$13,302$552
13$13,605$605
14$13,910$660
15$14,216$716
16$14,523$773
17$14,832$832
18$15,142$892
19$15,453$953
20$15,765$1,015
21$16,078$1,078
22$16,393$1,143
23$16,709$1,209
24$17,026$1,276
Starting balance$10,000
Total contributions$5,750
Total interest earned+$1,276
Ending balance$17,026

Input phase — no contributions

Savings Calculator
$
$
months
%

Default rate is Bankrate’s top offer as of July 2, 2026.

cd_calculator

Renders an interactive CD (certificate of deposit) calculator. Invoke when the user asks about CD earnings, wants to compare CD terms or rates, or asks about locking in a rate for a fixed period.

Input phase

CD Calculator
$
%

Default rate is Bankrate’s top CD offer as of July 2, 2026.

Output phase — 1yr

1-year CD · 4.5% APY
+$919earned
Initial deposit$20,000
Interest earned+$919
At maturity$20,919

Input phase — 6mo

CD Calculator
$
%

Default rate is Bankrate’s top CD offer as of July 2, 2026.

mortgage_affordability

Renders an income-based mortgage affordability calculator. Invoke when the user asks how much home they can afford based on their annual income.

Input phase

Mortgage affordability
$
$

car, student loans, cards — not rent

%

Output phase

Home affordability

Comfortable budget28% DTI

$374,342

≈ $2,774 / mo

Lender maximum36% DTI$409,050
Est. monthly payment≈ $3,071 / mo
Total cost over 30 yr≈ $999,000

30-yr fixed · 6.875% · $60k down

Comfortable home price
$374,342
Comfortable monthly payment
$2,774
Lender max home price
$409,050
Lender max monthly payment
$3,071

Zero-budget state

Home affordability

Your monthly debts are already above the comfortable limit.

Try reducing your monthly debt or increasing your income above, then recalculate.

Comfortable home price
$0
Comfortable monthly payment
$0
Lender max home price
$0
Lender max monthly payment
$0

mortgage_affordability_by_payment

Renders a payment-based mortgage affordability calculator. Invoke when the user says what monthly payment they can afford rather than stating their income.

Input phase

Mortgage affordability
$

total housing budget incl. taxes & insurance

%

Output phase

Home affordability

Your budget

$339,634

≈ $2,476 / mo

Max monthly budget$2,500
Total cost over 30 yr≈ $891,000

30-yr fixed · 6.875% · $60k down

Home budget
$339,634
Estimated monthly payment
$2,476

Zero-budget state

Home affordability

Your budget

$27,339

≈ $198 / mo

Max monthly budget$200
Total cost over 30 yr≈ $71,000

30-yr fixed · 6.875% · $5k down

Home budget
$27,339
Estimated monthly payment
$198

mortgage_payment

Renders an interactive mortgage payment breakdown calculator. Invoke when the user names a home price or asks what a monthly payment would be for a given scenario.

Input phase

Mortgage payment
$
%
$

20% down, 30-yr — Output phase

30-yr fixed · 20% down
$3,294/month
Principal & interest
$2,628
Property tax
$458
Homeowner's insurance
$208
Total interest over 30 yr≈ $546,000
Total cost over 30 yr≈ $1,186,000
Monthly mortgage payment breakdown
ComponentMonthly amount
Principal & interest$2,628
Property tax$458
Homeowner's insurance$208
Total monthly$3,294
Total interest over 30 years≈ $546,000
Total cost over 30 years≈ $1,186,000

5% down (PMI) — Output phase

30-yr fixed · 5% down
$3,283/month
Principal & interest
$2,496
Property tax
$367
Homeowner's insurance
$167
PMI
$253
Total interest over 30 yr≈ $519,000
Total cost over 30 yr≈ $1,182,000
Monthly mortgage payment breakdown
ComponentMonthly amount
Principal & interest$2,496
Property tax$367
Homeowner's insurance$167
PMI$253
Total monthly$3,283
Total interest over 30 years≈ $519,000
Total cost over 30 years≈ $1,182,000

15-yr with HOA — Output phase

15-yr fixed · 20% down
$4,111/month
Principal & interest
$3,211
Property tax
$413
Homeowner's insurance
$188
HOA
$300
Total interest over 15 yr≈ $218,000
Total cost over 15 yr≈ $740,000
Monthly mortgage payment breakdown
ComponentMonthly amount
Principal & interest$3,211
Property tax$413
Homeowner's insurance$188
HOA$300
Total monthly$4,111
Total interest over 15 years≈ $218,000
Total cost over 15 years≈ $740,000

Refi Calculator Gen-UI

Refinance-specific interactive components. Fixture data only — no live API calls.

refi_term_comparison

Renders a side-by-side refinance term comparison (10/15/20/30-yr) showing monthly payment, interest, break-even, and lifetime savings for each term. Invoke when the user asks which refinance term is best or wants to compare 15-yr vs 30-yr.

Input phase

Refinance term comparison · current $2,328/mo

15-yr at 6.25%

Monthly payment$2,701
Monthly savings vs. current-$373
Total interest paid≈ $171,158
Break-evenN/A
Lifetime savings (net)≈ -$9,450

Estimates use national-average stub rates. Actual rates vary by credit, lender, and market.

refi_vs_stay_put

Renders a refinance vs. stay-put comparison with cumulative cost chart. Invoke when the user wants to know if refinancing is worth it or asks to compare their current loan against a new rate.

Input phase

Refi vs. stay put

Stay put

$2,328

/month

Refinance

$1,940

/month

Save $388/mo

Monthly savings$388
Break-even2.1 years
Closing costs$9,450
Lifetime savings (net)≈ -$9,328

refi_break_even_explainer

Renders a visual break-even explainer card with a progress track. Invoke when the user asks what break-even means, how long until refinancing pays off, or wants the break-even explained from their closing costs and monthly savings.

Standard break-even (3 years)

Break-even explained

Break-even point

3.0 years

After 3.0 years, every monthly payment is pure savings.

Now3.0 years to break even25 years
Closing costs$9,450
Monthly savings$263
Savings after break-even≈ $69,432
How to use this: If you plan to stay in your home longer than 3.0 years, refinancing makes financial sense. If you might move sooner, the closing costs may not be worth it.

Quick break-even (13 months)

Break-even explained

Break-even point

13 months

After 13 months, every monthly payment is pure savings.

Now13 months to break even20 years
Closing costs$5,000
Monthly savings$385
Savings after break-even≈ $87,395
How to use this: If you plan to stay in your home longer than 13 months, refinancing makes financial sense. If you might move sooner, the closing costs may not be worth it.

No savings (payment increases)

Break-even explained

Break-even point

N/A

Refinancing increases your monthly payment.

Closing costs$8,000
Monthly savings-$50
How to use this: If you plan to stay in your home longer than N/A, refinancing makes financial sense. If you might move sooner, the closing costs may not be worth it.

cash_out_refi_calculator

Renders a cash-out refinance calculator showing new loan amount, LTV, monthly payment, and LTV warnings. Invoke when the user wants to access home equity via a cash-out refinance.

No on-page scenario yet

Cash-out refinance

Fill in your loan balance, home value, and current rate on the calculator above, and I can price a cash-out refinance against those exact numbers.

Exceeds 80% LTV cap

Cash-out refinance

$150,000 would put this loan over the 80% loan-to-value cap most lenders apply to cash-out refinances. Based on your balance and home value, you can take out up to $85,000.

Upstream error

Cash-out refinance

Could not calculate this cash-out scenario right now — please try again.

Settled result — golden UAT fixture (3.7-year break-even)

Cash-out refinance

Cash you receive

$10,000

New loan: $325,000 · 65.0% LTV

New monthly payment$2,112
Monthly payment change-$216/mo
Upfront cost$9,450
Break-even

3.7 years

Lifetime result (net)≈ -$61,500

heloc_vs_cashout_refi

Renders a HELOC vs. cash-out refinance comparison showing monthly payments, total interest, LTV, and closing costs for both options. Invoke when the user asks about tapping home equity and is deciding between a HELOC and a cash-out refi.

No on-page scenario yet

HELOC vs. cash-out refinance

Fill in your loan balance, home value, and current rate on the calculator above, and I can compare a HELOC against a cash-out refinance for those exact numbers.

Exceeds 80% LTV cap

HELOC vs. cash-out refinance

$150,000 would put the cash-out refi side of this comparison over the 80% loan-to-value cap most lenders apply to cash-out refinances. Based on your balance and home value, the cash-out refi side maxes out at $85,000.

Upstream error

HELOC vs. cash-out refinance

Could not calculate this cash-out scenario right now — please try again.

Settled comparison — HELOC cheaper monthly

HELOC vs. cash-out refinance
Variable HELOC rates can rise. Estimates only — consult a licensed lender.

HELOC

$71

/mo interest-only (draw period)

$123/mo repayment phase

Rate: 8.5% variable · LTV: 65%

Cash-out refi (lower payment)

$2,112

/mo (new fixed-rate loan)

Rate: 6.77% fixed · LTV: 65%

Cash accessed$10,000
Monthly difference-$287 (refi vs HELOC)
HELOC total interest (20 yr)≈ $6,120
Cash-out refi closing costs$9,450
HELOC vs. cash-out crossover2.8 years
HELOC: Lower entry payment, but the rate is variable and can rise significantly. Best if you need funds in stages or plan to repay quickly. Cash-out refi: Replaces your mortgage at a fixed rate. Best if current rates are lower than your existing mortgage.

Settled comparison — no crossover (HELOC stays cheaper)

HELOC vs. cash-out refinance
Variable HELOC rates can rise. Estimates only — consult a licensed lender.

HELOC (lower payment)

$354

/mo interest-only (draw period)

$615/mo repayment phase

Rate: 8.5% variable · LTV: 73%

Cash-out refi

$2,372

/mo (new fixed-rate loan)

Rate: 6.77% fixed · LTV: 73%

Cash accessed$50,000
Monthly difference+$44 (refi vs HELOC)
HELOC total interest (20 yr)≈ $30,600
Cash-out refi closing costs$10,950
HELOC vs. cash-out crossover—
HELOC: Lower entry payment, but the rate is variable and can rise significantly. Best if you need funds in stages or plan to repay quickly. Cash-out refi: Replaces your mortgage at a fixed rate. Best if current rates are lower than your existing mortgage.

heloc_rate_table_link

Renders a routing card — a labeled door to bankrate.com's live HELOC rate table. No rate, APR, or payment figure. Invoke only after heloc_vs_cashout_refi or cash_out_refi_calculator has rendered, or the user has named a HELOC themselves — never as a cold open.

With equity available

A HELOC may fit this better

Your 3.5% rate is well below today's — a cash-out refi would reset your whole balance to a higher rate.

About $145,000 in equity available

Without equity available

A HELOC may fit this better

You only need a small amount relative to your balance — no reason to touch your first mortgage.

rate_comparison_chart

Renders a side-by-side rate comparison card with cumulative cost chart. Shows the original estimate vs. a selected lender rate — monthly payments, monthly savings, break-even, closing costs, lifetime savings, and a cumulative cost line chart. Invoke when the user selects a lender rate and wants to compare it against their original estimate.

Lower rate selected (saves monthly)

Rate comparison

Original estimate

7.50%

$2,328/mo

Selected lender

6.125%

$1,940/mo

Save $388/mo

Monthly savings$388
Break-even2.1 yrs
Est. closing costs$11,174
Lifetime savings (net)≈ $107K

Similar rate (minimal savings)

Rate comparison

Original estimate

6.00%

$1,889/mo

Selected lender

6.125%

$1,914/mo

Monthly savings$25
Break-even1.9 yrs
Est. closing costs$11,334
Lifetime savings (net)≈ -$135

current_rates_card

Renders live refinance rates: Best on Bankrate, a top lender rate, and the national average — rate and APR only.

30-yr refinance rates

30-year refinance rates
Best on BankrateLowest available rate today
5.873%APR 5.951%
Top lender rateFrom a lender on Bankrate
6.125%APR 6.203%
National averageAvg. across all lenders
6.739%APR 6.739%

Rates shown are for a conventional 30-year refinance refinance. Actual rate depends on credit score, loan amount, and location.

15-yr refinance rates

15-year refinance rates
Best on BankrateLowest available rate today
5.125%APR 5.214%
Top lender rateFrom a lender on Bankrate
5.375%APR 5.461%
National averageAvg. across all lenders
6.021%APR 6.021%

Rates shown are for a conventional 15-year refinance refinance. Actual rate depends on credit score, loan amount, and location.

refi_rate_alert_enrollment

Inline refinance target-APR alert setup with account/sign-in steps when needed.

Refinance alert — complete scenario, guest

Loading your account status.
Loading your account…

Refi Rate Alert Enrollment — states

Auth and request states are controller state, not tool props — rendered here directly against RefiRateAlertEnrollmentView. No network calls.

1. Review — complete scenario

Create a rate alert

Choose the APR that would make refinancing worth another look. We'll email you when eligible offers meet your target.

Loan type30-year fixed refinance
$
$

Current best APR shown here: 6.72% (estimated)

%
APR or lower

2. Review — missing target APR

Create a rate alert

Choose the APR that would make refinancing worth another look. We'll email you when eligible offers meet your target.

Loan type30-year fixed refinance
$
$

Current best APR shown here: 6.72% (estimated)

%
APR or lower

Enter a target APR between 3.00% and 10.00%.

3. Review — existing alert / update mode

Create a rate alert

Choose the APR that would make refinancing worth another look. We'll email you when eligible offers meet your target.

Loan type30-year fixed refinance
$
$

Current best APR shown here: 6.72% (estimated)

%
APR or lower

You already have a refinance alert at 5.75% APR. Saving will update it.

4. Email entry

Create an account or sign in

Enter your email to create a free account or log in. I'll hold on to the rate alert and create it for you.

By continuing, you agree to Bankrate's Terms of Service and Privacy Policy.

5. OTP entry with mock hint

Enter the code we sent

We sent a 6-digit code to j***@example.com.

Prototype code: 123456

6. Saving

Setting up your rate alert.
Setting up your alert…

7. Success — created

Your refinance alert is on.
Your refinance alert is on

We'll email you when eligible refinance offers reach 5.75% APR or lower.

Loan type30-year fixed refinance
Target APR5.75%
StatusCreated

8. Success — updated

Your refinance alert is updated.
Your refinance alert is on

We'll email you when eligible refinance offers reach 5.75% APR or lower.

Loan type30-year fixed refinance
Target APR5.75%
StatusUpdated

9. Recoverable OTP error

Enter the code we sent

We sent a 6-digit code to j***@example.com.

That code is incorrect.

10. Save / network error

Something went wrong. Your details are still here.
We hit a snag

Something went wrong setting up your alert. Your details are still here — try again.

Chat Components

Interactive components rendered inside the AI chat thread. Fully live — changes here update everywhere they appear in chat.

question_card

AI-generated clarifying question card with dynamic answer input. Three variants: choice (pill buttons), number-input (numeric field + unit), text-input (free-text field). Supports answered/locked state with an Edit answer button that trims stale messages.

Choice — unanswered (closing costs vs. lowest rate)

To make this concrete for you:

Are you trying to minimize cash due at closing, or are you OK paying fees to lock the lowest rate?

Choice — answered (locked state with Edit button)

To make this concrete for you:

Are you trying to minimize cash due at closing, or are you OK paying fees to lock the lowest rate?

Lock the lowest rate

Number input — how long do you plan to stay? (unanswered)

This matters for your break-even:

How long do you realistically expect to keep this home before selling or refinancing again?

years

Number input — answered

This matters for your break-even:

How long do you realistically expect to keep this home before selling or refinancing again?

7 years

bankrate_insight

Renders a personalized "Bankrate insight" callout card on article pages. The AI generates the insight copy based on the user's persona and the article context. Includes an "Ask Bankrate" CTA that opens the chat panel.

Mortgage Refinancer — credit score near tier boundary

Insights for you

At a 690 credit score, you're right at the edge of the best rate tier — lenders often draw the line at 700+. Raising your score even 10–15 points before you apply could lower your rate more than shopping around for a different lender would.

First-Time Buyer — DTI and affordability insight

Insights for you

Your debt-to-income ratio is sitting around 38%, which most lenders accept — but at 36% or below you'd unlock better rate offers. Paying down $150/month of an existing balance could shift your DTI into that preferred range before you submit your application.

Saver — CD ladder opportunity

Insights for you

With rates still above 5% on 12-month CDs, laddering a portion of your savings across 3-, 6-, and 12-month terms locks in today's yield while keeping a third of your money accessible every quarter — better than leaving it all in a standard savings account.

QuestionCard

AI-generated clarifying questions rendered inline in the chat thread.

Yes / No / Not sure — choice (unanswered)

This helps me understand your situation better.

Do you plan to stay in your home for at least 3 more years?

Yes / No / Not sure — choice (answered)

This helps me understand your situation better.

Do you plan to stay in your home for at least 3 more years?

Yes

Text input + Not sure button (unanswered)

This helps me tailor the numbers to your situation.

What's your current credit score, or your best estimate?

Or type your reply in the chat below

Open-ended text prompt — no buttons (unanswered)

What is your main priority with this refinance?

Type your reply in the chat below

Conversational Intake Cards

Default form cards rendered at each stage of the conversational calculator flow.

GoalSelectionCard

Stage 1 — user picks their refinance goal.

Unanswered

What's your main goal?

Pre-selected (lower-payment)

What's your main goal?

MortgageDetailsCard

Stage 2 — remaining balance, current rate, and term.

Empty

Tell me about your current mortgage

$
%
yrs
mo

Pre-filled

Tell me about your current mortgage

$
%
yrs
mo

PropertyCreditCard

Stage 3 — property value, ZIP code, and credit score range.

Empty

A few more details

$

Pre-filled

A few more details

$

PreferencesCard

Stage 4 — new loan term and rate to compare.

With live rate data

What new loan would you like to compare?

New loan term

Rate to use

Rates loading

What new loan would you like to compare?

New loan term

Rate to use

RefiResultCard

Stage 5 — personalized refinance calculation results.

Monthly savings — lower payment goal

You could reduce your monthly payment by

$464/month

by refinancing to a 30-year loan at the Best rate on Bankrate

New monthly payment$1,863
Lifetime savings$18.1K
Break-even1.8 years
Est. closing costs$9,450
New rate5.875%