TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/metabase/metabase/llms.txt
Use this file to discover all available pages before exploring further.
StaticDashboard component renders a lightweight dashboard visualization without editing capabilities or drill-through actions. It’s ideal for displaying dashboard data in a read-only context.
Basic usage
Using entity ID
Reference dashboards by their entity ID:Using signed embed token
For guest embed scenarios:When using a
token, the dashboardId prop becomes optional.With initial parameters
Set initial filter values:Hiding parameters
Hide specific dashboard parameters from the UI:With auto-refresh
Automatically refresh the dashboard data:Customizing visibility
With event handlers
With plugins
Customize click actions for dashboard cards:With data picker configuration
With visualization change handler
Complete example
Props
The ID of the dashboard. Can be:
- Numerical ID (e.g.,
1) - Entity ID string (e.g.,
"abc123")
token.Signed token for guest embed. When provided,
dashboardId becomes optional.Initial parameter values for dashboard filters.
List of parameter names to hide from the UI.
Whether to show the dashboard title.
Whether to show titles on dashboard cards.
Whether to enable download functionality for cards.
Whether to enable dashboard subscriptions.
Auto-refresh interval in seconds. Set to
0 to disable.Custom CSS styles.
Custom CSS class name.
Plugin configuration for customizing behavior.
Configuration for data picker dialogs.
Callback when the dashboard loads with all cards and their content.
Callback when the dashboard structure loads (without card content yet).
Callback when a card’s visualization type changes.
Custom content (for future extensibility).
TypeScript types
When to use StaticDashboard vs InteractiveDashboard
UseStaticDashboard when:
- You want a lightweight, read-only dashboard
- Users should only view data without interacting
- You don’t need drill-through or click behaviors
- You’re embedding in contexts where interactivity isn’t needed
- Performance is critical (static dashboards are lighter)
InteractiveDashboard when:
- Users need to explore data through drill-downs
- Click behaviors and actions are required
- Users should be able to navigate to underlying questions
- Full dashboard interactivity is needed
Features
Parameter support
Static dashboards support dashboard parameters, allowing users to filter data across all cards.Auto-refresh
Keep dashboard data up-to-date with automatic refreshing at specified intervals.Download support
Users can download data from individual dashboard cards.Event handling
Track when dashboards load to integrate with your analytics or UI state.Performance considerations
StaticDashboard is optimized for display performance:
- Lighter bundle size compared to
InteractiveDashboard - Faster initial render
- Reduced memory footprint
- Ideal for embedding multiple dashboards on a single page
Related
- InteractiveDashboard - Interactive dashboard component
- Event handlers - Working with dashboard events
- Custom styling - Styling dashboards