---
/** Chip — a mono file/feature chip (e.g. `.kicad_pcb`, "Self-hostable"). */
interface Props {
  label?: string;
  icon?: string; // optional /public icon path for a leading mark
  class?: string;
}
const { label, icon, class: cls = '' } = Astro.props;
import Icon from './Icon.astro';
---

<span class={`chip ${cls}`}>
  {icon && <Icon name={icon} size="0.9rem" alt="" />}
  {label}<slot />
</span>
