Files
v10/site/src/components/typography/Td.astro
T

15 lines
354 B
Plaintext

---
import type { HTMLTag, Polymorphic } from 'astro/types';
import { twMerge } from 'tailwind-merge';
type Props<Tag extends HTMLTag = 'td'> = Polymorphic<{ as: Tag }> & {
class?: string;
};
const { as: Tag = 'td', class: className, ...props } = Astro.props;
---
<Tag class={twMerge('px-6 py-3 text-base', className)} {...props}>
<slot />
</Tag>