--- import { Icon } from "astro-icon/components"; import type { HTMLAttributes } from "astro/types"; export type LabelPlacement = "top" | "left" | "right" | "bottom" | "inside"; export interface Props extends HTMLAttributes<"a"> { icon: string; label: string; placement: LabelPlacement; overridePack?: string; isExternal?: boolean; } const { label, placement, icon, isExternal, overridePack, ...rest } = Astro.props; --- {placement === "inside" && label}