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>
21 lines
624 B
Plaintext
21 lines
624 B
Plaintext
---
|
|
// List group container (.list-group).
|
|
|
|
interface Props {
|
|
/** element to render instead of div (e.g. ul, nav) */
|
|
as?: string
|
|
flush?: boolean
|
|
hoverable?: boolean
|
|
transparent?: boolean
|
|
class?: string
|
|
/** remaining attributes (data-sortable, style, …) are forwarded to the element */
|
|
[key: string]: unknown
|
|
}
|
|
|
|
const { as: Element = 'div', flush, hoverable, transparent, class: className, ...rest } = Astro.props
|
|
---
|
|
|
|
<Element class:list={['list-group', flush && 'list-group-flush', hoverable && 'list-group-hoverable', transparent && 'list-group-transparent', className]} {...rest}>
|
|
<slot />
|
|
</Element>
|