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>
24 lines
431 B
Plaintext
24 lines
431 B
Plaintext
---
|
|
interface Props {
|
|
mainBtn?: string
|
|
options?: string[]
|
|
}
|
|
|
|
const { mainBtn, options } = Astro.props
|
|
|
|
const optionsArray = options ?? []
|
|
---
|
|
|
|
<div class="dropdown">
|
|
<a href="#" class="btn dropdown-toggle" data-bs-toggle="dropdown">{mainBtn}</a>
|
|
<div class="dropdown-menu">
|
|
{
|
|
optionsArray.map((option) => (
|
|
<a class="dropdown-item" href="#">
|
|
{option}
|
|
</a>
|
|
))
|
|
}
|
|
</div>
|
|
</div>
|