IconButton.astro (318B)
1 --- 2 import { BUTTON_STYLING_SHARED } from '../consts.ts' 3 const { image, link } = Astro.props 4 5 const buttonStyling = BUTTON_STYLING_SHARED + ' flex-row items-center gap-3' 6 --- 7 8 <a href={link} class={buttonStyling}> 9 <img src={image.link} alt={image.alt} class="h-8 w-8 object-cover" /> 10 <span>{image.alt}</span> 11 </a>