Migrate more widgets to props and slots

This commit is contained in:
prototypa
2023-01-08 21:55:29 -05:00
parent 5db96e66eb
commit 8401a3fd45
5 changed files with 101 additions and 71 deletions

View File

@ -41,7 +41,7 @@ const {
callToAction.text &&
callToAction.href && (
<div class="mt-6 max-w-xs mx-auto">
<a class="btn btn-primary mb-4 sm:mb-0 w-full sm:w-auto" href={callToAction.href} target="_blank" rel="noopener">
<a class="btn btn-primary w-full sm:w-auto" href={callToAction.href} target="_blank" rel="noopener">
{callToAction.icon && <Icon name={callToAction.icon} class="w-5 h-5 mr-1 -ml-1.5" />}
{callToAction.text}
</a>