mirror of
https://github.com/tabler/tabler.git
synced 2026-10-12 13:17:00 +04:00
20 lines
430 B
Plaintext
20 lines
430 B
Plaintext
---
|
|
import type { HTMLTag } from 'astro/types'
|
|
|
|
// Section subheader label (.subheader).
|
|
|
|
type PolymorphicProps = { as?: HTMLTag }
|
|
|
|
interface Props extends PolymorphicProps {
|
|
class?: string
|
|
/** remaining attributes (colspan, …) are forwarded */
|
|
[key: string]: unknown
|
|
}
|
|
|
|
const { as: Tag = 'div', class: className, ...rest }: Props = Astro.props
|
|
---
|
|
|
|
<Tag class:list={['subheader', className]} {...rest}>
|
|
<slot />
|
|
</Tag>
|