| 1 | --- |
| 2 | import { yantraSvg, type YantraOptions } from "./yantra"; |
| 3 | |
| 4 | interface Props extends Omit<YantraOptions, "output"> { |
| 5 | class?: string; |
| 6 | } |
| 7 | |
| 8 | const { size = 42, theme = "auto", class: className } = Astro.props; |
| 9 | const svg = yantraSvg({ size, theme }); |
| 10 | --- |
| 11 | |
| 12 | <span class={className} aria-hidden="true" set:html={svg} /> |