1
0
mirror of https://github.com/tabler/tabler.git synced 2026-08-07 03:42:27 +04:00
Files
tabler/shared/ui/Subheader.astro

18 lines
369 B
Plaintext

---
// Section subheader label (.subheader).
interface Props {
/** element to render — default div */
as?: string
class?: string
/** remaining attributes (colspan, …) are forwarded */
[key: string]: unknown
}
const { as: Tag = 'div', class: className, ...rest } = Astro.props
---
<Tag class:list={['subheader', className]} {...rest}>
<slot />
</Tag>