--- import type { HTMLTag } from 'astro/types' // Card subtitle (.card-subtitle). // `as` must stay out of the Props body: Astro's frontmatter scanner bails on a member // literally named `as` and silently falls back to untyped props. type PolymorphicProps = { as?: HTMLTag } interface Props extends PolymorphicProps { class?: string } const { as: Tag = 'p', class: className }: Props = Astro.props ---