mirror of
https://github.com/tabler/tabler.git
synced 2026-10-13 21:57:00 +04:00
18 lines
367 B
Plaintext
18 lines
367 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>
|