Restructure shared Astro sources and import aliases (#2737)

This commit is contained in:
Paweł Kuna
2026-07-30 23:58:48 +02:00
committed by GitHub
parent 0f8dcb0a3c
commit ad2ed849dd
492 changed files with 1469 additions and 1714 deletions
+27
View File
@@ -0,0 +1,27 @@
---
// Equivalent of parts/dropdown/days.html
interface Props {
id?: string;
label?: string;
value?: string;
}
const { id, label = 'Select time range', value = 'Last 7 days' } = Astro.props;
---
<div class="dropdown">
<a
class="dropdown-toggle text-secondary"
id={id ? `${id}-dropdown` : undefined}
href="#"
data-bs-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false"
aria-label={label}
>{value}</a>
<div class="dropdown-menu dropdown-menu-end" aria-labelledby={id ? `${id}-dropdown` : undefined}>
<a class="dropdown-item active" href="#" aria-current="true">Last 7 days</a>
<a class="dropdown-item" href="#">Last 30 days</a>
<a class="dropdown-item" href="#">Last 3 months</a>
</div>
</div>