mirror of
https://github.com/tabler/tabler.git
synced 2026-10-12 13:17:00 +04:00
20 lines
571 B
Plaintext
20 lines
571 B
Plaintext
---
|
|
// Legend list container (.legend-list).
|
|
|
|
interface Props {
|
|
/** legend-list-vertical (stacked items) */
|
|
vertical?: boolean
|
|
/** legend-list-divided (a line between the items, for large legends) */
|
|
divided?: boolean
|
|
class?: string
|
|
/** remaining attributes (id, data-*, …) are forwarded to the root element */
|
|
[key: string]: unknown
|
|
}
|
|
|
|
const { vertical, divided, class: className, ...rest } = Astro.props
|
|
---
|
|
|
|
<div class:list={['legend-list', vertical && 'legend-list-vertical', divided && 'legend-list-divided', className]} {...rest}>
|
|
<slot />
|
|
</div>
|