Base Documentation home page
Search...
⌘K
Ask AI
Blog
GitHub
Support
Base.org
Base.org
Search...
Navigation
Mini App Features
Open/Close & External Links
Get Started
Base Chain
Base Account
Base App
Mini Apps
OnchainKit
Cookbook
Showcase
Learn
Introduction
Why Mini Apps
Quickstart
New Apps
Existing Apps
Launch Guide
Get Featured
Overview
Quality Bar
Submission Guidelines
Design & UX Standards
Design Patterns for Mini Apps
OnchainKit Usage in Mini Apps
UI Patterns for Mini Apps
Language and Tone
Growth Playbook
Optimized Onboarding
Build Viral Mini Apps
Base Build Analytics
Implementing Other Analytics
Event Schema
Mini App Features
Catalog
Manifest
Authentication
Embeds & Previews
Search and Discovery
Sharing & Social Graph
Notifications (coming soon)
Open/Close & External Links
Webhooks
Troubleshooting
Common Issues & Debugging
Error Handling
Base App Compatibility
Technical Reference
MiniKit
Mini App Features
Open/Close & External Links
Copy page
Handle closing the frame and opening external URLs safely
Copy page
What you’ll build
Buttons to close the frame and open external URLs
Do it
Add
useClose
and wire to a button
Add
useOpenUrl
and wire to external links
Verify
Close button dismisses the frame
External links open correctly in and out of frame contexts
Deep dive
useClose
useOpenUrl
Was this page helpful?
Yes
No
Suggest edits
Raise issue
Notifications (coming soon)
Webhooks
Assistant
Responses are generated using AI and may contain mistakes.