mirror of
https://github.com/tabler/tabler.git
synced 2026-08-07 03:42:27 +04:00
8962710163
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
23 lines
596 B
Plaintext
23 lines
596 B
Plaintext
---
|
|
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>
|