mirror of
https://github.com/tabler/tabler.git
synced 2026-10-12 13:17:00 +04:00
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
18 lines
452 B
Plaintext
18 lines
452 B
Plaintext
---
|
|
// Button group container (.btn-group / .btn-group-vertical).
|
|
|
|
interface Props {
|
|
/** use .btn-group-vertical instead of .btn-group */
|
|
vertical?: boolean
|
|
class?: string
|
|
/** remaining attributes (aria-label, …) are forwarded */
|
|
[key: string]: unknown
|
|
}
|
|
|
|
const { vertical, class: className, ...rest } = Astro.props
|
|
---
|
|
|
|
<div class:list={[vertical ? 'btn-group-vertical' : 'btn-group', className]} role="group" {...rest}>
|
|
<slot />
|
|
</div>
|