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
+22
View File
@@ -0,0 +1,22 @@
---
import Icon from './Icon.astro';
interface Props {
icon?: string;
class?: string;
}
const { icon = 'dots-vertical', class: className } = Astro.props;
---
<div class:list={['dropdown', className]}>
<a href="#" class="btn btn-action" data-bs-toggle="dropdown" aria-expanded="false">
<Icon name={icon} />
</a>
<div class="dropdown-menu dropdown-menu-end">
<a href="#" class="dropdown-item">Import</a>
<a href="#" class="dropdown-item">Export</a>
<a href="#" class="dropdown-item">Download</a>
<a href="#" class="dropdown-item text-danger">Delete</a>
</div>
</div>