1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
--- export interface Props { name: string; href: string; } const { name, href } = Astro.props; --- <div class="author"> <p><a {href}>{name}</a></p> </div> <style> .author { margin-bottom: 0.75rem; } </style>