mirror of
https://github.com/tabler/tabler.git
synced 2026-10-12 05:06:55 +04:00
18 lines
323 B
Plaintext
18 lines
323 B
Plaintext
---
|
|
import type { HTMLTag } from 'astro/types'
|
|
|
|
// Card subtitle (.card-subtitle).
|
|
|
|
type PolymorphicProps = { as?: HTMLTag }
|
|
|
|
interface Props extends PolymorphicProps {
|
|
class?: string
|
|
}
|
|
|
|
const { as: Tag = 'p', class: className }: Props = Astro.props
|
|
---
|
|
|
|
<Tag class:list={['card-subtitle', className]}>
|
|
<slot />
|
|
</Tag>
|