oliverdavies.uk/src/components/Button.astro

17 lines
433 B
Text
Raw Normal View History

2023-04-21 14:36:24 +01:00
---
interface Props {
href: string;
text: string;
};
const { href, text } = Astro.props as Props;
---
2023-04-22 22:20:37 +01:00
<div class="mt-6 not-prose">
2023-04-21 14:36:24 +01:00
<a
class="inline-flex items-center py-3 px-6 text-base font-medium text-white no-underline rounded-md duration-200 ease-in-out hover:bg-white focus:bg-white bg-blue-primary transition-color hover:text-blue-primary focus:text-blue-primary"
href={href}
>
{text} &rarr;
</a>
</div>