dash-4-bootstrap-components
Sub-skill of dash: 4. Bootstrap Components.
Best use case
dash-4-bootstrap-components is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Sub-skill of dash: 4. Bootstrap Components.
Teams using dash-4-bootstrap-components should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/4-bootstrap-components/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How dash-4-bootstrap-components Compares
| Feature / Agent | dash-4-bootstrap-components | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Sub-skill of dash: 4. Bootstrap Components.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 4. Bootstrap Components
## 4. Bootstrap Components
**Using Dash Bootstrap Components:**
```python
from dash import Dash, html, dcc, callback, Output, Input
import dash_bootstrap_components as dbc
import plotly.express as px
import pandas as pd
# Initialize with Bootstrap theme
app = Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP])
# Sample data
df = pd.DataFrame({
"date": pd.date_range("2025-01-01", periods=100),
"sales": [100 + i * 2 + (i % 7) * 10 for i in range(100)],
"orders": [50 + i + (i % 5) * 5 for i in range(100)]
})
# Layout with Bootstrap components
app.layout = dbc.Container([
# Header
dbc.Row([
dbc.Col([
html.H1("Sales Dashboard", className="text-primary"),
html.P("Interactive analytics powered by Dash", className="lead")
])
], className="mb-4"),
# Metrics row
dbc.Row([
dbc.Col([
dbc.Card([
dbc.CardBody([
html.H4("Total Sales", className="card-title"),
html.H2(f"${df['sales'].sum():,}", className="text-success")
])
])
], md=4),
dbc.Col([
dbc.Card([
dbc.CardBody([
html.H4("Total Orders", className="card-title"),
html.H2(f"{df['orders'].sum():,}", className="text-info")
])
])
], md=4),
dbc.Col([
dbc.Card([
dbc.CardBody([
html.H4("Avg Order Value", className="card-title"),
html.H2(f"${df['sales'].sum() / df['orders'].sum():.2f}", className="text-warning")
])
])
], md=4)
], className="mb-4"),
# Filters
dbc.Row([
dbc.Col([
dbc.Card([
dbc.CardHeader("Filters"),
dbc.CardBody([
dbc.Label("Date Range"),
dcc.DatePickerRange(
id="date-range",
start_date=df["date"].min(),
end_date=df["date"].max(),
className="mb-3"
),
dbc.Label("Metric"),
dcc.Dropdown(
id="metric-dropdown",
options=[
{"label": "Sales", "value": "sales"},
{"label": "Orders", "value": "orders"}
],
value="sales"
)
])
])
], md=3),
dbc.Col([
dcc.Graph(id="main-chart")
], md=9)
]),
# Tabs
dbc.Row([
dbc.Col([
dbc.Tabs([
dbc.Tab(label="Daily Data", tab_id="daily"),
dbc.Tab(label="Summary", tab_id="summary")
], id="tabs", active_tab="daily"),
html.Div(id="tab-content", className="mt-3")
])
], className="mt-4")
], fluid=True)
@callback(
Output("main-chart", "figure"),
[Input("date-range", "start_date"),
Input("date-range", "end_date"),
Input("metric-dropdown", "value")]
)
def update_chart(start_date, end_date, metric):
filtered = df[
(df["date"] >= start_date) &
(df["date"] <= end_date)
]
fig = px.line(
filtered,
x="date",
y=metric,
title=f"{metric.title()} Over Time"
)
fig.update_layout(template="plotly_white")
return fig
@callback(
Output("tab-content", "children"),
Input("tabs", "active_tab")
)
def render_tab(tab):
if tab == "daily":
return dbc.Table.from_dataframe(
df.tail(10),
striped=True,
bordered=True,
hover=True
)
elif tab == "summary":
return html.Div([
html.P(f"Total Records: {len(df)}"),
html.P(f"Date Range: {df['date'].min()} to {df['date'].max()}"),
html.P(f"Sales Range: ${df['sales'].min()} - ${df['sales'].max()}")
])
if __name__ == "__main__":
app.run(debug=True)
```Related Skills
well-production-dashboard
Create interactive well production dashboards with real-time monitoring, verification integration, economic metrics, and multi-format exports. Use for well performance analysis, field aggregation, production forecasting, and API-driven dashboards.
provider-audit-bootstrap-and-path-classification
Fix provider-session ecosystem audit failures caused by source-checkout imports and over-aggressive symbolic-path classification.
interactive-dashboard-builder
Create self-contained HTML/JavaScript dashboards with Chart.js, filters, and professional styling
web-artifacts-builder-1-interactive-dashboard
Sub-skill of web-artifacts-builder: 1. Interactive Dashboard (+1).
mooring-analysis-3-mooring-line-components
Sub-skill of mooring-analysis: 3. Mooring Line Components (+1).
qgis-11-pyqgis-application-bootstrap-headless
Sub-skill of qgis: 1.1 PyQGIS Application Bootstrap (Headless) (+2).
parallel-file-processor-core-components
Sub-skill of parallel-file-processor: Core Components (+5).
github-multi-repo-multi-repo-dashboard
Sub-skill of github-multi-repo: Multi-Repo Dashboard (+2).
elite-frontend-ux-compound-components-prefer-over-prop-soup
Sub-skill of elite-frontend-ux: Compound Components (prefer over prop soup) (+3).
docusaurus-5-mdx-and-react-components
Sub-skill of docusaurus: 5. MDX and React Components.
plotly-dashboard-with-plotly-dash
Sub-skill of plotly: Dashboard with Plotly Dash.
dash-gunicorn-production-server
Sub-skill of dash: Gunicorn Production Server (+2).